public async void Test() { // Arrange var controller = new ResponseController(db); // Act var response = await controller.GetData(0, "fakeName") as ObjectResult; // Assert var value = response.Value as IEnumerable <Product>; Assert.Empty(value); }
public async void Test() { // Arrange var controller = new ResponseController(db); // Act var response = await controller.GetData(0, "fakeName") as ObjectResult; // Assert var value = response.Value as IEnumerable <Product>; Assert.Empty(value); }