Example #1
0
        public async Task TestGetByAlgorithmAndYear(MiningAlgorithm algo, int year)
        {
            var result = await _jsonHardwareProvider.GetHardwareByAlgorithmAndYear(algo, year);

            Assert.NotEmpty(result);
            Assert.All(result, item => Assert.True(item.Algorithm == algo && item.ProductionYear == year));
        }
 public async Task <List <MiningDevice> > GetHardwareByAlgorithmAndYear(MiningAlgorithm algorithm, int year)
 {
     return(await jsonHardwareProvider.GetHardwareByAlgorithmAndYear(algorithm, year));
 }