public async Task Production_DeleteProductAsync() { // Arrange var controller = new ProductionController(AdventureWorksRepository); var id = 1000; // Act var response = await controller.DeleteProduct(id) as ObjectResult; // Assert var value = response.Value as ISingleModelResponse <ProductViewModel>; Assert.False(value.DidError); }