public void GetRatesData_EmptyWhenRatesIsNull_Test()
        {
            // Arrange
            var exchangeRates = Mock.Of<IExchangeRates>();
            var vm = new ExchangeRatesVm(exchangeRates);

            // Act
            var ratesData = vm.GetRatesData();

            // Assert
            Assert.IsEmpty(ratesData);
        }
        public void GetRatesData_Test()
        {
            // Arrange
            var rate1 = Mock.Of<Rate>(t => t.Stamp == new DateTime(2001, 1, 1) && t.Value == 123.456789);
            var rate2 = Mock.Of<Rate>(t => t.Stamp == new DateTime(2002, 2, 2) && t.Value == 987.654321);
            var vm = new ExchangeRatesVm(Mock.Of<IExchangeRates>())
            {
                Rates = new[] { rate1, rate2 }
            };

            // Act
            var ratesData = vm.GetRatesData();

            // Assert
            Assert.AreEqual(ratesData, "['2001-01-01',123.456789],['2002-02-02',987.654321]");
        }