public void FindInvalidRecipients_ListOfBulkRecipient_ReturnsNull_WhenRecipientsIsNull() { //Arrange var validator = new SendValidator(); //Act var actual = validator.FindInvalidRecipients((List <IBulkRecipient>)null); //Assert Assert.IsNull(actual); }
public void FindInvalidRecipients_ListOfBulkRecipient_ReturnsNull_WhenRecipientsIsEmpty() { //Arrange var message = new List <IBulkRecipient>(); var validator = new SendValidator(); //Act var actual = validator.FindInvalidRecipients(message); //Assert Assert.IsNull(actual); }
public void FindInvalidRecipients_ListOfBulkRecipient_ReturnsList_WhenInvalidRecipientsFound() { //Arrange var message = new List <IBulkRecipient> { new BulkRecipient(RandomHelper.RandomString()) }; var validator = new SendValidator(); //Act var actual = validator.FindInvalidRecipients(message); //Assert Assert.AreEqual(1, actual.Count); }
public void FindInvalidRecipients_ListOfBulkRecipient_ReturnsNull_WhenNoInvalidRecipientsFound() { //Arrange var message = new List <IBulkRecipient> { new BulkRecipient(RandomHelper.RandomEmail()) }; var validator = new SendValidator(); //Act var actual = validator.FindInvalidRecipients(message); //Assert Assert.IsNull(actual); }