Example #1
0
        /// <inheritdoc />
        public override string ToString()
        {
            string ratesPart = Rates.Aggregate("", (acc, curr) =>
                                               $"{acc}{Environment.NewLine}{curr.Key.ToShortDateString()}: {DayRates.RatesToString(curr.Value)}");

            return($"{StartAt.ToShortDateString()}–{EndAt.ToShortDateString()} exchange rates for 1 {Base} " +
                   ratesPart);
        }