From 1f1882e320fd6e3bca3f4c05ff42e9b24abf5a31 Mon Sep 17 00:00:00 2001 From: Sumit Ghosh <13281246+sughosneo@users.noreply.github.com> Date: Thu, 24 Jun 2021 15:27:01 +0530 Subject: [PATCH] Fixed integration test cases --- .../PublicApi/CatalogItemEndpoints/CreateEndpoint.cs | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/tests/FunctionalTests/PublicApi/CatalogItemEndpoints/CreateEndpoint.cs b/tests/FunctionalTests/PublicApi/CatalogItemEndpoints/CreateEndpoint.cs index 55d33d4..aff2473 100644 --- a/tests/FunctionalTests/PublicApi/CatalogItemEndpoints/CreateEndpoint.cs +++ b/tests/FunctionalTests/PublicApi/CatalogItemEndpoints/CreateEndpoint.cs @@ -18,8 +18,7 @@ namespace Microsoft.eShopWeb.FunctionalTests.Web.Controllers private int _testBrandId = 1; private int _testTypeId = 2; private string _testDescription = "test description"; - private string _testName = "test name"; - private string _testUri = "test uri"; + private string _testName = "test name"; private decimal _testPrice = 1.23m; public CreateEndpoint(ApiTestFixture factory) @@ -54,8 +53,7 @@ namespace Microsoft.eShopWeb.FunctionalTests.Web.Controllers Assert.Equal(_testBrandId, model.CatalogItem.CatalogBrandId); Assert.Equal(_testTypeId, model.CatalogItem.CatalogTypeId); Assert.Equal(_testDescription, model.CatalogItem.Description); - Assert.Equal(_testName, model.CatalogItem.Name); - Assert.Equal(_testUri, model.CatalogItem.PictureUri); + Assert.Equal(_testName, model.CatalogItem.Name); Assert.Equal(_testPrice, model.CatalogItem.Price); } @@ -66,8 +64,7 @@ namespace Microsoft.eShopWeb.FunctionalTests.Web.Controllers CatalogBrandId = _testBrandId, CatalogTypeId = _testTypeId, Description = _testDescription, - Name = _testName, - PictureUri = _testUri, + Name = _testName, Price = _testPrice }; var jsonContent = new StringContent(JsonSerializer.Serialize(request), Encoding.UTF8, "application/json");