Esempio n. 1
0
        public void OneTimeSetup()
        {
            _repo = new CardRepository
            {
                FilterSetCode = F.IsEqualTo("ISD", Str.Comparer)
            };

            _repo.LoadFile();
            _repo.Load();

            _priceRepo = new PriceRepository();
            _priceRepo.Load();

            _repo.FillPrices(_priceRepo);
            _transformation = new CollectedCardsDeckTransformation(_repo);
        }
Esempio n. 2
0
        public void OneTimeSetup()
        {
            _repo = new CardRepository
            {
                FilterSetCode = F.IsWithin(Sequence.From("ME2", "ICE"), Str.Comparer)
            };

            _repo.LoadFile();
            _repo.Load();

            _priceRepo = new PriceRepository();
            _priceRepo.Load();

            _repo.FillPrices(_priceRepo);
            _transformation = new CollectedCardsDeckTransformation(_repo);
        }
Esempio n. 3
0
        public void OneTimeSetup()
        {
            LoadModules();

            _repo = new CardRepository(Kernel.Get <CardFormatter>(), () => null)
            {
                FilterSetCode = F.IsWithin(Sequence.From("ME2", "ICE"), Str.Comparer),
            };

            _repo.LoadFile();
            _repo.Load();
            _priceRepo = new PriceRepository(() => null);
            // do not call _priceRepo.Load on purpose
            _priceRepo.FillPrice(_repo);

            _transformation = new CollectedCardsDeckTransformation(_repo, _priceRepo);
        }