public void ChangeCustomerAddress(Customer customer, string oldAddress, string newAddress)
        {
            mainframe.GetCustomerAddress(customer);

            mainframe.SetCustomerAddress(customer, newAddress);

            audit.AuditChangeOfAddress(customer, oldAddress, newAddress);
        }
Example #2
0
        public void Test_GetCustomerAddress_ReturnsAddress()
        {
            //arrange
            int             id       = 1;
            string          address  = "5 Bar Street, Leeds";
            Customer        customer = new Customer(id, address);
            MainframeSystem system   = new MainframeSystem();

            //act
            string actualValue = system.GetCustomerAddress(customer);

            //assert
            Assert.That(actualValue, Is.EqualTo(address));
        }