public void Should_return_same_instance_when_adding_multiple_modules() { //Given var configurator = new CarterConfigurator(); //When var sameconfigurator = configurator.WithModules(typeof(TestModule), typeof(BindModule)); //Then Assert.Same(configurator, sameconfigurator); }
public void Should_add_multiple_modules() { //Given var configurator = new CarterConfigurator(); //When configurator.WithModules(typeof(TestModule), typeof(BindModule)); //Then Assert.Equal(2, configurator.ModuleTypes.Count); }