public void Calculate_Should_Return_1_If_IndividualContactEmails_IsThereIsAMatchingEmail() { // Arrange var weighting = new EmailWeighting(_mockLogger.Object); // Act var customer = new Customer() { Email = "*****@*****.**" }; var individual = new FWTIndividual { ContactEmails = new FWTContactEmail[] { new FWTContactEmail { EmailAddress = "*****@*****.**" } } }; var result = weighting.Calculate(individual, customer); // Assert Assert.Equal(1, result); }
public void Calculate_Should_Return_0_If_IndividualContactEmails_IsNull() { // Arrange var weighting = new EmailWeighting(_mockLogger.Object); // Act var customer = new Customer() { Email = "*****@*****.**" }; var individual = new FWTIndividual(); var result = weighting.Calculate(individual, customer); // Assert Assert.Equal(0, result); }