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); }
public async Task <CommandResult <Dictionary <string, decimal> > > CurrencyPrice(CurrencyPriceCommand command) { CurrencyPriceRequest request = new CurrencyPriceRequest(_defaultRequest) { FromSymbol = command.FromSymbol, ToSymbols = command.ToSymbols, Exchange = command.Exchange, }; var response = await _pairPriceUseCase.Execute(request, _uriBuilder); return(response); }