Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        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);
        }