public async Task WhenISubmitToUpdateProductSpecification() { var productId = ScenarioContext.Get <int>("product-Id"); var command = new UpdateProductSpecificationCommand { ProductId = productId, Description = "description", SpecificationValues = new List <ProductSpecificationValueCommand> { new ProductSpecificationValueCommand { SpecificationItemId = 1, Value = "1" }, new ProductSpecificationValueCommand { SpecificationItemId = 2, Value = "2" }, new ProductSpecificationValueCommand { SpecificationItemId = 3, Value = "3" }, } }; ScenarioContext.Add("product-dimension", command); await _productTask.UpdateProductSpecification(command); }
public async Task <IActionResult> UpdateSpecification(UpdateProductSpecificationCommand command) { await _bus.Dispatch(command); return(Ok()); }
public async Task UpdateProductSpecification(UpdateProductSpecificationCommand command) { await _httpClient.Post("api/products/specification", command); }