Esempio n. 1
0
        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));
        }
Esempio n. 2
0
        public void WhenNotApplyingDeliveryDelay()
        {
            var sendOptions = new SendOptions();

            Assert.IsFalse(Delay.By(TimeSpan.FromHours(5)).IsApplied(sendOptions));
        }