Example #1
0
        public async Task GetCurrencyPriceTest(CurrencyPriceCommand command)
        {
            var result = await _gateway.CurrencyPrice(command);

            Assert.True(result.IsSuccess);
            Assert.NotEmpty(result.Content);
            Assert.True(result.Content.Keys.All(k => command.ToSymbols.Contains(k)));
        }
        public async Task <CommandResult <Dictionary <string, decimal> > > CurrencyPrice([FromQuery] CurrencyPriceCommand command)
        {
            var result = await _cryptoCompareGateway.CurrencyPrice(command);

            return(result);
        }