Ejemplo n.º 1
0
        public static void TestSellableInventoryRatingAddUpdate(SellerRatingService.SellerRatingServiceClient client)
        {
            var request = new SellableInventoryRatingAddUpdateRequest();

            request.SellableInventoryRating = new SellableInventoryRating();
            request.SellableInventoryRating.SellableInventoryRatingHashKey = "74fe8fc4-119a-41e5-8344-d46f48214d8a";
            request.SellableInventoryRating.SellableInventoryHashKey       = "3aa26e82-ce30-4172-a077-8222792255f8";
            request.SellableInventoryRating.SellableInventoryRatingSqn     = 178388896;
            request.SellableInventoryRating.RatingDemoHashKey            = "a01d5ebd-5fc8-4193-b89f-d5130ebe9df4";
            request.SellableInventoryRating.RatingPeriodHashKey          = "e3afd6d1-1566-4a32-9703-94ab62291080";
            request.SellableInventoryRating.SellableInventoryRatingValue = "003e64c7-7664-4ff0-aeb9-3b42baee371e";
            request.SellableInventoryRating.RowVersion = Timestamp.FromDateTime(DateTime.SpecifyKind(DateTime.Parse("2017-08-05T17:17:17.0788364Z"), DateTimeKind.Utc));
            var response = client.SellableInventoryRatingAddUpdate(request);
        }
        public override async Task <SellableInventoryRatingAddUpdateResponse> SellableInventoryRatingAddUpdate(SellableInventoryRatingAddUpdateRequest request, ServerCallContext context)
        {
            var res = await _executor.ExecuteAsync(new SellableInventoryRatingAddUpdateQuery
            {
                SellableInventoryRating = request.SellableInventoryRating.ToEntity()
            }).ConfigureAwait(false);

            var returnVal = res;

            var result = new SellableInventoryRatingAddUpdateResponse
            {
            };

            return(result);
        }