コード例 #1
0
        public void addShippingAddress()
        {
            DLModel2.SAAddress    = "SAAddress";
            DLModel2.SAAddress2   = "SAAddress2";
            DLModel2.SACity       = "SACity";
            DLModel2.SAFirstName  = "SAFirstName";
            DLModel2.SALastName   = "SALastName";
            DLModel2.SAPhone      = "132-132(1259)";
            DLModel2.SAPostalCode = "90029";
            DLModel2.SAStateID    = 1;
            DLModel2.SAUserID     = 1;
            int result = _shippingAddressBL.addShippingAddress(DLModel2);

            Assert.IsTrue(result > 0, "Unable to Add");
        }
コード例 #2
0
 public int addShippingAddress(DTO.ShippingAddress shippingAddress)
 {
     return(_shippingAddress.addShippingAddress(Mapper.Map <DTO.ShippingAddress, HCRGUniversity.Core.Data.Model.ShippingAddress>(shippingAddress)));
 }