public void Time_to_live_should_be_passed_on_the_databus()
        {
            var message = new MessageWithExplicitTimeToLive
                          {
                                  DataBusProperty = new DataBusProperty<string>("test")
                              };

            outgoingMutator.MutateOutgoing(message);

            dataBus.AssertWasCalled(
                x => x.Put(Arg<Stream>.Is.Anything, Arg<TimeSpan>.Is.Equal(TimeSpan.FromMinutes(1))));
        }
Beispiel #2
0
        public void Time_to_live_should_be_passed_on_the_databus()
        {
            var message = new MessageWithExplicitTimeToLive()
            {
                DataBusProperty = new DataBusProperty <string>("test")
            };


            outgoingMutator.MutateOutgoing(message);

            dataBus.AssertWasCalled(
                x => x.Put(Arg <Stream> .Is.Anything, Arg <TimeSpan> .Is.Equal(TimeSpan.FromMinutes(1))));
        }