public void Calculate_Should_Return_0_If_AddressUprn_DoesntMatch() { // Arrange var weighting = new UprnWeighting(_mockLogger.Object); var individual = new FWTIndividual { ContactPostals = new FWTContactPostal[] { new FWTContactPostal { UPRN = "TestUprn" } } }; // Act var customer = new Customer() { Address = new Address { UPRN = "NoUprn" } }; var result = weighting.Calculate(individual, customer); // Assert Assert.Equal(0, result); }
public void Calculate_Should_Return_0_If_CustomerAddress_NotProvided() { var weighting = new UprnWeighting(_mockLogger.Object); var individual = new FWTIndividual { ContactPostals = new FWTContactPostal[] { new FWTContactPostal { UPRN = "TestUprn" } } }; // Act var customer = new Customer(); var result = weighting.Calculate(individual, customer); // Assert Assert.Equal(0, result); }