mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-17 17:14:18 +02:00
moved log to object db.
This commit is contained in:
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;
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user