예제 #1
0
        public void Should_return_same_instance_when_adding_responsenegotiator()
        {
            //Given
            var configurator = new CarterConfigurator();

            //When
            var sameconfigurator = configurator.WithResponseNegotiator <TestResponseNegotiator>();

            //Then
            Assert.Same(configurator, sameconfigurator);
        }
예제 #2
0
        public void Should_add_single_responsenegotiator()
        {
            //Given
            var configurator = new CarterConfigurator();

            //When
            configurator.WithResponseNegotiator <TestResponseNegotiator>();

            //Then
            Assert.Single(configurator.ResponseNegotiatorTypes);
        }