Hi All,
I'm trying to mock a generic interface twice in the same test using a different type for the generic. For example Interface<string> and Interace<int>. However, I keep getting an error when I go to get the mock object. The problem, I think, is that the mock manager is not treating these as different mock objects, and when casting the return of the object from the mock object it is failing.
Is this normal? Should I be doing something different?
Thanks,
Pleb
Here's my unit test
[Test]
[ClearMocks]
public void ConstructorTest3()
{
MockObject<INotify<string>> stringNotifier = MockManager.MockObject<INotify<string>>();
MockObject<INotify<UserLoginAuthenticationResult>> resultNotifier = MockManager.MockObject<INotify<UserLoginAuthenticationResult>>();
UserLoginAuthenticationService loginService = new UserLoginAuthenticationService(stringNotifier.Object, resultNotifier.Object);
}