Example #1
0
        public void Execute()
        {
            decimal euros = Input.DecimalParse(message: "How many Euros are you exchanging? ");

            var currencyConverter = new ConsoleCurrencyConverter();
            var dollars           = currencyConverter.Convert(euros);

            Console.WriteLine("{0} Euros at an exchange rate of {1} is {2} dollars.",
                              euros,
                              Rates.RateFor("EUR"),
                              dollars);
        }
        public void Execute()
        {
            decimal euros = Input.DecimalParse(message: "How many Euros are you exchanging? ");

            var currencyConverter = new ConsoleCurrencyConverter();
            var dollars = currencyConverter.Convert(euros);

            Console.WriteLine("{0} Euros at an exchange rate of {1} is {2} dollars.",
                euros,
                Rates.RateFor("EUR"),
                dollars);
        }