Пример #1
0
            public void should_build_valid_configuration()
            {
                IBus bus = this.StartBus(
                    "Test",
                    cfg =>
                {
                    cfg.On <BooMessage>("boo").ReactWith(m => { });
                    cfg.Route("foo").WithConfirmation();
                });

                bus.CanHandle("boo").Should().BeTrue();
                bus.CanRoute("foo").Should().BeTrue();

                bus.CanHandle("foo").Should().BeFalse();
                bus.CanRoute("voo").Should().BeFalse();
            }