mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-21 05:53:33 -07:00
moved log to object db.
This commit is contained in:
parent
71dcd623f7
commit
b3c6db5997
21 changed files with 157 additions and 321 deletions
16
NzbDrone.Test.Common/MockerExtensions.cs
Normal file
16
NzbDrone.Test.Common/MockerExtensions.cs
Normal file
|
@ -0,0 +1,16 @@
|
|||
using System.Linq;
|
||||
using NzbDrone.Test.Common.AutoMoq;
|
||||
|
||||
namespace NzbDrone.Test.Common
|
||||
{
|
||||
public static class MockerExtensions
|
||||
{
|
||||
public static TInterface Resolve<TInterface, TService>(this AutoMoqer mocker)
|
||||
where TService : TInterface
|
||||
{
|
||||
var service = mocker.Resolve<TService>();
|
||||
mocker.SetConstant<TInterface>(service);
|
||||
return service;
|
||||
}
|
||||
}
|
||||
}
|
|
@ -88,6 +88,7 @@
|
|||
<Compile Include="AutoMoq\Unity\AutoMockingContainerExtension.cs" />
|
||||
<Compile Include="ExceptionVerification.cs" />
|
||||
<Compile Include="LoggingTest.cs" />
|
||||
<Compile Include="MockerExtensions.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<Compile Include="ReflectionExtensions.cs" />
|
||||
<Compile Include="TestBase.cs" />
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue