public void InitialiseRegisteredClass_When_AlternativeModuleRegistrationUsed() { var setup = new SociableTest <ClassDependingOnIMockedDependency>(); setup.ProvideModule(new MyModule()); setup.ProvideDependency <IMockedDependency>(new MockedDependency()); AssertSutCreated(setup); }
public void InitialiseRegisteredClass_When_InModule() { var setup = new SociableTest <ClassDependingOnIMockedDependency>(new MyModule()); var mock = new Mock <IMockedDependency>(); setup.ProvideDependency(mock.Object); AssertSutCreated(setup); }