public PickupAddressModel CreatePickupAddress()
        {
            var pickupAddressService = new PickupAddressService(Config);
            var list = pickupAddressService.Get().Result;

            if (list.Count > 0)
            {
                return(list[0]);
            }

            var pickupAddressModel = new PickupAddressModel
            {
                ContactName   = "Xuân Quỳnh",
                ContactPhone  = "0987654321",
                Id            = 11,
                DetailAddress = "Số 1 ngõ 2/12 Phố Ta"
            };

            var data = pickupAddressService.Create(pickupAddressModel).Result;

            return(data);
        }
Пример #2
0
 public PickupAddressTest()
 {
     _pickupAddressService = new PickupAddressService(Config);
 }