public void WhenApplyingDelayTimespan() { var sendOptions = new SendOptions(); var deliveryDelay = TimeSpan.FromMinutes(42); Delay.By(deliveryDelay).Apply(sendOptions); Assert.AreEqual(deliveryDelay, sendOptions.GetDeliveryDelay()); Assert.IsTrue(Delay.By(deliveryDelay).IsApplied(sendOptions)); }
public void WhenNotApplyingDeliveryDelay() { var sendOptions = new SendOptions(); Assert.IsFalse(Delay.By(TimeSpan.FromHours(5)).IsApplied(sendOptions)); }