Пример #1
0
        public void When_Building_A_Dispatcher_With_Named_Gateway()
        {
            _dispatcher = _builder.Build();

            //_should_build_a_dispatcher
            Assert.NotNull(_dispatcher);
        }
        public void When_Building_A_Dispatcher()
        {
            _dispatcher = _builder.Build();

            //_should_build_a_dispatcher
            Assert.NotNull(_dispatcher);
            //_should_have_a_foo_connection
            Assert.NotNull(GetConnection("foo"));
            //_should_have_a_bar_connection
            Assert.NotNull(GetConnection("bar"));
            //_should_be_in_the_awaiting_state
            Assert.AreEqual(DispatcherState.DS_AWAITING, _dispatcher.State);
        }