public async Task UpdateProduct() { _productLogic.Setup(mockRepo => mockRepo.Update(It.IsNotNull <IProduct>())).ReturnsAsync(_expectedProduct); _slExpectedProduct.Validate("err loc"); var actualProduct = await _controller.UpdateProduct(_slExpectedProduct); AssertProductsAreEqual(_slExpectedProduct, actualProduct); }
public void ProductNegativeId() { _expectedProduct.Id = ""; _expectedProduct.Validate("err loc"); }