public void UpdateCustomerInfoRemoveTest_RemovesCustomer() { Customers customer = new Customers(firstName, lastName, type); EmailRepo repo = new EmailRepo(); repo.CreateCustomer(customer); Assert.IsTrue(repo.UpdateCustomerInfo(customer, "4", "")); Assert.IsFalse(repo.ShowCustomers()); }
public void UpdateCustomerInfoLastNameTest_UpdatesLastName() { Customers customer = new Customers(firstName, lastName, type); EmailRepo repo = new EmailRepo(); repo.CreateCustomer(customer); Assert.IsTrue(repo.UpdateCustomerInfo(customer, "2", "Lucus")); Assert.IsTrue(repo.ShowCustomers()); }
public void UpdateCustomerInfoTypeTest_UpdatesType() { Customers customer = new Customers(firstName, lastName, type); EmailRepo repo = new EmailRepo(); repo.CreateCustomer(customer); Assert.IsTrue(repo.UpdateCustomerInfo(customer, "3", "potential")); Assert.IsTrue(repo.ShowCustomers()); }
public void CreateAndShowCustomersTest_AddCustomerToListAndShow() { Customers customer = new Customers(firstName, lastName, type); EmailRepo repo = new EmailRepo(); repo.CreateCustomer(customer); repo.CreateCustomer(customer); Assert.IsTrue(repo.ShowCustomers()); }