public void ShouldInvokeRegisterInContainerExtension() { //Arrange var containerExtension = A.Fake <IBootstrapperContainerExtension>(); var invoker = new RegistrationInvoker <IRegisteredByConvention, RegisteredByConvention>(containerExtension); //Act invoker.Register(); //Assert A.CallTo(() => containerExtension.Register <IRegisteredByConvention, RegisteredByConvention>()).MustHaveHappened(); }
public void ShouldCreateANewRegistrationInvoker() { //Arrange var containerExtension = A.Fake <IBootstrapperContainerExtension>(); //Act var result = new RegistrationInvoker <IRegisteredByConvention, RegisteredByConvention>(containerExtension); //Assert Assert.IsNotNull(result); Assert.IsInstanceOfType(result, typeof(IRegistrationInvoker <IRegisteredByConvention, RegisteredByConvention>)); Assert.IsInstanceOfType(result, typeof(RegistrationInvoker <IRegisteredByConvention, RegisteredByConvention>)); }