public async Task GetFeatures_FeaturesIsEmpty_ReturnsNotFound() { _mockFeaturesRepository.Setup(fr => fr.GetAllAsync()) .Returns(async() => await Task.Run(() => new List <Feature>())); var result = await _vehiclesController.GetFeatures(); Assert.That(result, Is.InstanceOf(typeof(NotFoundResult))); }