public async Task TestGetAllYears() { var result = await _jsonHardwareProvider.GetAvailableYears(); Assert.NotEmpty(result); Assert.All(result, item => Assert.True(item > 2010)); }
public async Task <List <int> > GetAvailableYears() { return(await jsonHardwareProvider.GetAvailableYears()); }