Exemplo n.º 1
0
        public void IsMessageReadyToSend_Variant1_MethodShouldReturnTrue()
        {
            // Notification Should Be Sent: 15.06.2018
            notification.HistoricEventDate = new DateTime(1993, 6, 15);
            SetAheadOfTimeValuesForNotification(notification, 0); // Ahead Of Time (Number of days): 0
            notification.SendingHour = 8;

            // Current Date: 15.06.2018 15:00
            SystemTime.Set(new DateTime(2018, 6, 15, 15, 0, 0));

            var result = notification.IsMessageReadyToSend();

            Assert.AreEqual(true, result);
        }