コード例 #1
0
        public void send_records()
        {
            var message = new Message1();
            var bus = new RecordingServiceBus();

            bus.Send(message);

            bus.Sent.Single().ShouldBeTheSameAs(message);
        }
コード例 #2
0
        public void send_records()
        {
            var message = new Message1();
            var bus     = new RecordingServiceBus();

            bus.Send(message);

            bus.Sent.Single().ShouldBeTheSameAs(message);
        }
コード例 #3
0
        public void send_to_destination()
        {
            var destination = new Uri("memory://blah");
            var message     = new Message1();
            var bus         = new RecordingServiceBus();

            bus.Send(destination, message);

            var sentTo = bus.SentDirectlyTo.Single();

            sentTo.Destination.ShouldEqual(destination);
            sentTo.Message.ShouldBeTheSameAs(message);
        }
コード例 #4
0
        public void send_to_destination()
        {
            var destination = new Uri("memory://blah");
            var message = new Message1();
            var bus = new RecordingServiceBus();

            bus.Send(destination, message);

            var sentTo = bus.SentDirectlyTo.Single();
            sentTo.Destination.ShouldEqual(destination);
            sentTo.Message.ShouldBeTheSameAs(message);
        }