public void ChangeCustomerAddress(Customer customer, string oldAddress, string newAddress) { mainframe.GetCustomerAddress(customer); mainframe.SetCustomerAddress(customer, newAddress); audit.AuditChangeOfAddress(customer, oldAddress, newAddress); }
public void Test_SetCustomerAddress_SetsNewAddress() { //arrange int id = 1; string oldAddress = "5 Bar Street, Leeds"; string newAddress = "New Address"; Customer customer = new Customer(id, oldAddress); MainframeSystem system = new MainframeSystem(); //act system.SetCustomerAddress(customer, newAddress); //assert Assert.That(customer.Address, Is.EqualTo(newAddress)); }