mirror of
https://github.com/Prowlarr/Prowlarr
synced 2025-12-06 00:22:31 +01:00
align mock with upstream
This commit is contained in:
parent
a2afcff6df
commit
ab4d80faa6
1 changed files with 2 additions and 2 deletions
|
|
@ -51,7 +51,7 @@ public virtual Mock<T> GetMock<T>(MockBehavior behavior)
|
|||
|
||||
if (behavior != MockBehavior.Default && mock.Behavior == MockBehavior.Default)
|
||||
{
|
||||
throw new InvalidOperationException("Unable to change be behaviour of a an existing mock.");
|
||||
throw new InvalidOperationException("Unable to change be behaviour of an existing mock.");
|
||||
}
|
||||
|
||||
return mock;
|
||||
|
|
@ -139,7 +139,7 @@ private void SetupAutoMoqer(IContainer container)
|
|||
|
||||
LoadPlatformLibrary();
|
||||
|
||||
AssemblyLoader.RegisterSQLiteResolver();
|
||||
AssemblyLoader.RegisterNativeResolver(new[] { "System.Data.SQLite", "Prowlarr.Core" });
|
||||
}
|
||||
|
||||
private Mock<T> TheRegisteredMockForThisType<T>(Type type)
|
||||
|
|
|
|||
Loading…
Reference in a new issue