Exemplo n.º 1
0
        public void GetExchangeRateForToday_WorksAsExpected()
        {
            // Act -
            var exchangeRate = _pokedollarServiceProvider.GetTodaysExchangeRate();

            // Assert -
            Assert.IsTrue(exchangeRate.Title.Length > 0);
            Assert.IsTrue(exchangeRate.ImageUrl.Length > 0);
            Assert.IsTrue(exchangeRate.Description.Length > 0);
        }
Exemplo n.º 2
0
 public async Task DolarHoje(CommandContext ctx)
 {
     var exchangeRateMessage = _serviceProvider.GetTodaysExchangeRate();
     await ctx.Message.RespondAsync(embed : exchangeRateMessage);
 }