public void ReturnFalse_WhenCustomerIdDoesNotExist() { CustomerBase customerBase = new CustomerBase(); Customer customer = new Customer("Larry", 8855); customerBase.Add(customer); Assert.IsFalse(customerBase.Edit(0090, 4430, "Larry")); }
public void ReturnTrue_WhenOnlyCustomerIdIsEdited() { CustomerBase customerBase = new CustomerBase(); Customer customer = new Customer("Joey", 5746); customerBase.Add(customer); Assert.IsTrue(customerBase.Edit(customer.PrimaryKey, 4398)); }
public void ReturnTrue_WhenBothCustomerNameAndIdAreEdited() { CustomerBase customerBase = new CustomerBase(); Customer customer = new Customer("Coby", 72343); customerBase.Add(customer); Assert.IsTrue(customerBase.Edit(customer.PrimaryKey, 8253, "Ryan")); }
public void ReturnTrue_WhenOnlyCustomerNameIsEdited() { CustomerBase customerBase = new CustomerBase(); Customer customer = new Customer("Abraham", 7234); customerBase.Add(customer); Assert.IsTrue(customerBase.Edit(customer.PrimaryKey, 7234, "Isaac")); }