コード例 #1
0
        public void RetreiveExisting()
        {
            //Arrange
            var addressRepository = new AddressRepository();
            var expected = new Address(1)
            {
                AddressType = 0,
                StreetLine1 = "xxx",
                StreetLine2 = "xxx",
                City = "xxx",
                StateProvince = "xxx",
                PostCode = "xxx",
                Country = "xxx"
            };

            //Act
            var actual = addressRepository.Retreive(1);

            //Assert
            Assert.AreEqual(expected.AddressId, actual.AddressId);
            Assert.AreEqual(expected.StreetLine1, actual.StreetLine1);
        }
コード例 #2
0
 public CustomerRepository()
 {
     addressRepository = new AddressRepository();
 }
コード例 #3
0
 public CustomerRepository()
 {
     addressRepository = new AddressRepository();
 }