Exemplo n.º 1
0
        private static void Main(string[] args)
        {
            var exchangeRateAPI = new ExchangeRateAPIManager();

            var exchangeRate = new ExchangeRateAPIAdapter(exchangeRateAPI);

            var amountResult = exchangeRate.getCurrentBRLtoUSD();

            Console.WriteLine($"Amount result: {amountResult}");
        }
 public ExchangeRateAPIAdapter(ExchangeRateAPIManager adaptee)
 {
     this.adaptee = adaptee;
 }