Пример #1
0
        public void MarkAsSentMethod_ShouldChangeStatusToSuccess()
        {
            // Arrange
            var recipient = new Recipient();

            // Act
            recipient.MarkAsSent(new DateTime());

            // Assert
            Assert.AreEqual(SendingStatus.Success, recipient.Status);
        }
Пример #2
0
        public void MarkAsSentMethod_ShouldSetLastAttemptDate()
        {
            // Arrange
            var recipient = new Recipient();
            var successDate = new DateTime(2015, 1, 1);

            // Act
            recipient.MarkAsSent(successDate);

            // Assert
            Assert.AreEqual(successDate, recipient.LastAttemptDate);
        }