コード例 #1
0
        public void GetFullRecipientCount_BasicMessage_Returns0_WhenNoRecipientsAdded()
        {
            //Arrange
            var message   = new BasicMessage();
            var validator = new SendValidator();

            //Act
            var actual = validator.GetFullRecipientCount(message);

            //Assert
            Assert.AreEqual(0, actual);
        }
コード例 #2
0
        public void GetFullRecipientCount_BasicMessage_ReturnsGT0_WhenOnlyBccRecipientsHasOneValue()
        {
            //Arrange
            var message = new BasicMessage
            {
                Bcc = new List <IEmailAddress> {
                    new EmailAddress(RandomHelper.RandomEmail())
                }
            };
            var validator = new SendValidator();

            //Act
            var actual = validator.GetFullRecipientCount(message);

            //Assert
            Assert.IsTrue(actual > 0);
        }