public void WithContainer_WhenInvoked_ShouldSetTheContainer() { //Arrange var container = A.Fake <IWindsorContainer>(); var containerOptions = A.Fake <IBootstrapperContainerExtensionOptions>(); var options = new WindsorOptions(containerOptions); //Act options.WithContainer(container); //Assert Assert.AreSame(container, options.Container); }
public void WithContainer_WhenInvoked_ShouldReturnTheSameWindsorOptions() { //Arrange var container = A.Fake <IWindsorContainer>(); var containerOptions = A.Fake <IBootstrapperContainerExtensionOptions>(); var options = new WindsorOptions(containerOptions); //Act var result = options.WithContainer(container); //Assert Assert.AreSame(options, result); }