public void NewCustomerIsCreated_WhenUserCreatesCustomer() { int allCustomersBefore = context.Customers.CountAsync().Result; customerCommandHandler.CreateNewCustomer("female", "Smilla", "Meow", "Meow street 4", "Meow city", "12345", "Meowland", "MW", new System.DateTime(2013, 05, 02), "", "", ""); int allCustomerAfter = context.Customers.CountAsync().Result; Assert.AreEqual(allCustomerAfter, allCustomersBefore + 1); }
public int CreateNewCustomer() { return(customerCommandHandler.CreateNewCustomer(Gender, Givenname, Surname, Streetaddress, City, Zipcode, Country, CountryCode, Birthday, Telephonecountrycode, Telephonenumber, Emailaddress)); }