public async Task GetProduct_Returns_OK() { var productsController = new ProductsController(productContextMock.Object); var result = await productsController.GetProduct(1); Assert.IsInstanceOfType(result, typeof(OkNegotiatedContentResult <Product>)); }
public async Task GetProduct_Returns_Not_found() { var productsController = new ProductsController(productContextMock.Object); var result = await productsController.GetProduct(4); Assert.IsInstanceOfType(result, typeof(NotFoundResult)); }