mirror of
https://github.com/Radarr/Radarr.git
synced 2026-04-23 22:25:14 -04:00
Moved source code under src folder - massive change
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
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