public void send_delayed_by_time_span() { var message = new Message1(); var bus = new RecordingServiceBus(); bus.DelaySend(message, 5.Minutes()); bus.DelayedSent.Single().Message.ShouldBeTheSameAs(message); bus.DelayedSent.Single().Delay.ShouldEqual(5.Minutes()); }
public void send_delayed_by_time_span() { var message = new Message1(); var bus = new RecordingServiceBus(); bus.DelaySend(message, 5.Minutes()); bus.DelayedSent.Single().Message.ShouldBeTheSameAs(message); bus.DelayedSent.Single().Delay.ShouldEqual(5.Minutes()); }
public void send_delayed_by_time() { var time = DateTime.Today.AddHours(5); var message = new Message1(); var bus = new RecordingServiceBus(); bus.DelaySend(message, time); bus.DelayedSent.Single().Message.ShouldBeTheSameAs(message); bus.DelayedSent.Single().Time.ShouldEqual(time); }
public void send_delayed_by_time() { var time = DateTime.Today.AddHours(5); var message = new Message1(); var bus = new RecordingServiceBus(); bus.DelaySend(message, time); bus.DelayedSent.Single().Message.ShouldBeTheSameAs(message); bus.DelayedSent.Single().Time.ShouldEqual(time); }