Example #1
0
        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);
        }
Example #2
0
 public void ProductNegativeId()
 {
     _expectedProduct.Id = "";
     _expectedProduct.Validate("err loc");
 }