コード例 #1
0
        public async Task TestGetAllYears()
        {
            var result = await _jsonHardwareProvider.GetAvailableYears();

            Assert.NotEmpty(result);
            Assert.All(result, item => Assert.True(item > 2010));
        }
コード例 #2
0
 public async Task <List <int> > GetAvailableYears()
 {
     return(await jsonHardwareProvider.GetAvailableYears());
 }