Exemple #1
0
        public async Task TestGetByAlgorithm(MiningAlgorithm algo)
        {
            var result = await _jsonHardwareProvider.GetHardwareByMiningAlgorithm(algo);

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