示例#1
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);
        }