Ejemplo n.º 1
0
        public void Setup()
        {
            _spec = new EuroJackpotSpec();
            var lottery            = new Lottery(_spec);
            var lotteryDataFactory = new MultiLotteryDataFactory(lottery);

            _provider        = new LotteryProvider(lotteryDataFactory);
            _featuresManager = new FeaturesFactory();
        }
Ejemplo n.º 2
0
        public void SaveDraws()
        {
            string       outputFile = @"E:\projects\save.csv";
            ILotterySpec spec       = new EuroJackpotSpec();
            var          lottery    = new Lottery(spec);
            var          provider   = new LotteryProvider(new LottoFeaturesDataFactory(new MultiLotteryDataFactory(lottery), spec.Features));
            var          mainData   = provider.ImportData(@"E:\projects\eurojackpot-archive-2018-oct.csv");

            provider.ExportData(mainData, outputFile);
        }