public void AddCustomer() { CustomerCatalog cc = new CustomerCatalog(); int numberBefore = cc.Count; Customer c1 = new Customer(2, "john", "Undulatsvej", "78674523"); cc.AddCustomer(c1); int numberAfter = cc.Count; Assert.AreEqual(numberBefore + 1, numberAfter); }
public void AddCustomerTest() { //Arrange ICustomerCatalog catalog = new CustomerCatalog(); int numberBefore = catalog.Count; Customer c1 = new Customer("Mads", "over there", 1, "10 10 10 10"); //Act catalog.AddCustomer(c1); int numberAfter = catalog.Count; //Assert Assert.AreEqual(numberBefore + 1, numberAfter); }