public void DeleteItem() { var item = "Coca-cola"; CheckoutClient.ShoppingListService.CreateItem(TestHelper.GetShoppingItemCreateCocaColaModel()); var response = CheckoutClient.CustomerService.DeleteCustomer(item); response.Should().NotBeNull(); response.HttpStatusCode.Should().Be(HttpStatusCode.OK); response.Model.Message.Should().BeEquivalentTo("Ok"); }
public void UpdateItem() { var item = TestHelper.GetShoppingItemCreateCocaColaModel(); CheckoutClient.ShoppingListService.CreateItem(item); var updateModel = TestHelper.GetShoppingItemUpdateCocaColaModel(); var response = CheckoutClient.ShoppingListService.UpdateItem(updateModel); response.Should().NotBeNull(); response.HttpStatusCode.Should().Be(HttpStatusCode.OK); response.Model.Message.Should().BeEquivalentTo("Ok"); }