Пример #1
0
 public void PassInPrecreatedAddress_GetsDataCorrectly()
 {
     Address bkAddress = CreateCustomer().Address;
     var vm = new AddressVM(bkAddress);
     var toCopy = new Address {HouseNumber = vm.HouseNumber, AddressBody = vm.AddressBody, Postcode = vm.Postcode, PhoneNumber = vm.PhoneNumber, ProofOfAddressPath = vm.ProofOfAddressPath};
     Assert.IsTrue(toCopy.HasMatchingState(bkAddress));
 }
Пример #2
0
 public void UpdateAddress_CascadesToBackingAddress()
 {
     var bkAddress = new Address();
     var vm = new AddressVM(bkAddress);
     Address address = CreateCustomer().Address;
     vm.HouseNumber = address.HouseNumber;
     vm.AddressBody = address.AddressBody;
     vm.Postcode = address.Postcode;
     vm.PhoneNumber = address.PhoneNumber;
     vm.ProofOfAddressPath = address.ProofOfAddressPath;
     AssertAreEqual(address, bkAddress);
 }