public void Customer_with_empty_market_gets_default_value() { CustomerValidation customerValidation = new CustomerValidation(); var newCustomer = new Customer() { // Salesperson didn't enter the CustomerMarket CustomerMarket = String.Empty, }; bool isValidCustomer = customerValidation.ValidateCustomer(newCustomer); newCustomer.CustomerMarket.Should().Be("Default"); }
public void WrongName() { var customer = new CustomerDetails { Name = "pe", Address = "Something", City = "Zurich", Country = new Country { Name = "Swiss" }, Zip = "3434", Phone = "079 620 00 35", Email = "*****@*****.**" }; Assert.IsFalse(CustomerValidation.ValidateCustomer(customer)); }