﻿using crConverter.Contracts;
using System;
using System.Collections.Generic;
using System.Text;
using GenFu;
using System.Linq;

namespace crConverter.Tests.Component
{
    public static class TestData
    {
        public static List<ExchangeRateSnapshot> GenerateSnapshots(int howMany)
        {
            A.Configure<ExchangeRateSnapshot>()
                .Fill(a => a.ExchangeRates, () => { return A.ListOf<ExchangeRate>(20); });
            A.Configure<ExchangeRate>()
                .Fill(a => a.CurrencyTicker).WithRandom(new string[] { "USD", "JPY", "BGN", "CZK", "DKK", "GBP", "HUF", "PLN", "RON", "SEK", "CHF", "NOK", "HRK", "RUB", "TRY", "AUD", "BRL", "CAD", "CNY", "HKD", "IDR", "ILS", "INR", "KRW", "MXN", "MYR", "NZD", "PHP", "SGD", "THB", "ZAR" });

            var generated = A.ListOf<ExchangeRateSnapshot>(howMany);

            return generated;
        }
    }
}
