public async Task TestGetNonExistingProductAsync() { // Arrange var repository = RepositoryMocker.GetAdventureWorksRepository(); var controller = new ProductionController(repository); var id = 0; // Act var response = await controller.GetProductAsync(id) as ObjectResult; var value = response.Value as ISingleModelResponse <ProductViewModel>; repository.Dispose(); // Assert Assert.False(value.DidError); }