public void Should_return_same_instance_when_adding_module() { //Given var configurator = new CarterConfigurator(); //When var sameconfigurator = configurator.WithModule <TestModule>(); //Then Assert.Same(configurator, sameconfigurator); }
public void Should_add_single_module() { //Given var configurator = new CarterConfigurator(); //When configurator.WithModule <TestModule>(); //Then Assert.Single(configurator.ModuleTypes); }