コード例 #1
0
 public DataLoader(ISetLoader setLoader, IDeckedBuilderLoader deckedBuilderLoader, AnalyzerContext context,
                   IOptionsSnapshot <SetsToLoad> setSnapshot, DeckedBuilderVersion deckedBuilderVersion,
                   IDeckedBuilderRepository deckedBuilderRepository, IDb2ScryfallRepository db2ScryfallRepository,
                   IMapper mapper, ILogger <DataLoader> logger)
 {
     _setLoader            = setLoader ?? throw new ArgumentNullException(nameof(setLoader));
     _deckedBuilderLoader  = deckedBuilderLoader ?? throw new ArgumentNullException(nameof(deckedBuilderLoader));
     _context              = context ?? throw new ArgumentNullException(nameof(context)); //TODO: Use the repositories
     _deckedBuilderVersion =
         deckedBuilderVersion ?? throw new ArgumentNullException(nameof(deckedBuilderVersion));
     _deckedBuilderRepository = deckedBuilderRepository ?? throw new ArgumentNullException(nameof(deckedBuilderRepository));
     _db2ScryfallRepository   = db2ScryfallRepository ?? throw new ArgumentNullException(nameof(db2ScryfallRepository));
     _mapper             = mapper ?? throw new ArgumentNullException(nameof(mapper));
     _logger             = logger ?? throw new ArgumentNullException(nameof(logger));
     _setsToLoadSettings = setSnapshot?.Value?.Ids ?? throw new ArgumentNullException(nameof(setSnapshot));
 }
コード例 #2
0
 protected DeckedBuilderParser(ICardRepository cardRepository, IDb2ScryfallRepository db2ScryfallRepository)
 {
     _cardRepository        = cardRepository ?? throw new ArgumentNullException(nameof(cardRepository));
     _db2ScryfallRepository = db2ScryfallRepository ?? throw new ArgumentNullException(nameof(db2ScryfallRepository));
 }
コード例 #3
0
 public DeckedBuilderColl2Parser(ICardRepository cardRepository, IDb2ScryfallRepository db2ScryfallRepository) :
     base(cardRepository, db2ScryfallRepository)
 {
 }