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)))); }
public void Time_to_live_should_be_passed_on_the_databus() { var message = new MessageWithExplicitTimeToLive() { DataBusProperty = new DataBusProperty<string>("test") }; mutator.MutateOutgoing(message); dataBus.AssertWasCalled( x => x.Put(Arg<Stream>.Is.Anything, Arg<TimeSpan>.Is.Equal(TimeSpan.FromMinutes(1)))); }