Пример #1
0
        public void UpdateConfigSaleoutQuantityFromLogAsync()
        {
            var request = new UpdateConfigSaleoutQuantityRequest
            {
                RefreshType   = RefreshType.RefreshByActivityId,
                ProductModels = new List <UpdateQuantityProductModel>()
                {
                    new UpdateQuantityProductModel()
                    {
                        ActivityId = new Guid("0E01F706-9B2E-4C04-875F-0AE7DC398A37")
                    },
                    new UpdateQuantityProductModel()
                    {
                        ActivityId = new Guid("8312FE9D-6DCE-4CD5-87D5-99CE064336A3")
                    }
                }
            };

            using (var client = new FlashSaleClient())
            {
                var result = client.UpdateConfigSaleoutQuantityFromLog(request);
                result.ThrowIfException();
                Assert.IsNotNull(result.Result);
            }
        }
Пример #2
0
 public async Task <OperationResult <bool> > UpdateConfigSaleoutQuantityFromLogAsync(UpdateConfigSaleoutQuantityRequest request)
 {
     return(OperationResult.FromResult(await FlashSaleManager.UpdateConfigSaleoutQuantityFromLogAsync(request)));
 }