mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-25 22:36:59 -04:00
Ensure auto-generated mocks are also registered in the test container.
This commit is contained in:
@@ -80,6 +80,8 @@ namespace NzbDrone.Test.Common.AutoMoq
|
||||
{
|
||||
if (_registeredMocks.ContainsKey(type) == false)
|
||||
_registeredMocks.Add(type, mock);
|
||||
if (mock != null)
|
||||
_container.RegisterInstance(type, mock.Object);
|
||||
}
|
||||
|
||||
public virtual void SetConstant<T>(T instance)
|
||||
|
||||
Reference in New Issue
Block a user