OutgoingMessages() public méthode

public OutgoingMessages ( ) : IEnumerable
Résultat IEnumerable
        public void ignores_nulls_just_fine()
        {
            var messages = new FubuMVC.Core.ServiceBus.Runtime.Invocation.InvocationContext(new Envelope { Message = new Message1() }, new HandlerChain());
            messages.EnqueueCascading(null);

            messages.OutgoingMessages().Any().ShouldBeFalse();
        }
Exemple #2
0
        public void ignores_nulls_just_fine()
        {
            var messages = new FubuMVC.Core.ServiceBus.Runtime.Invocation.InvocationContext(new Envelope {
                Message = new Message1()
            }, new HandlerChain());

            messages.EnqueueCascading(null);

            messages.OutgoingMessages().Any().ShouldBeFalse();
        }
        public void enqueue_an_oject_array()
        {
            var messages = new FubuMVC.Core.ServiceBus.Runtime.Invocation.InvocationContext(new Envelope{Message = new Message1()}, new HandlerChain());
            var m1 = new Message1();
            var m2 = new Message2();

            messages.EnqueueCascading(new object[]{m1, m2});

            messages.OutgoingMessages().ShouldHaveTheSameElementsAs(m1, m2);
        }
Exemple #4
0
        public void enqueue_an_oject_array()
        {
            var messages = new FubuMVC.Core.ServiceBus.Runtime.Invocation.InvocationContext(new Envelope {
                Message = new Message1()
            }, new HandlerChain());
            var m1 = new Message1();
            var m2 = new Message2();

            messages.EnqueueCascading(new object[] { m1, m2 });

            messages.OutgoingMessages().ShouldHaveTheSameElementsAs(m1, m2);
        }