public async Task WhenISubmitTheProductVariety()
        {
            var productId = ScenarioContext.Get <int>("product-Id");
            var command   = new CreateProductVarietyCommand
            {
                ProductId              = productId,
                ProductImageType       = 1,
                ProductDiscountPercent = 10,
                ProductAmount          = 32000,
                ColorImageName         = "image.png",
                ColorType              = 1,
                Images = new List <string>
                {
                    "image1.png",
                    "image2.png",
                    "image3.png",
                    "image4.png",
                }
            };

            ScenarioContext.Add("product-variety", command);

            await _productTask.CreateProductVariety(command);
        }
        public async Task <IActionResult> CreateProductVariety(CreateProductVarietyCommand command)
        {
            await _bus.Dispatch(command);

            return(Ok());
        }
 public async Task CreateProductVariety(CreateProductVarietyCommand command)
 {
     await _httpClient.Post("api/products/create-product-variety", command);
 }