示例#1
0
    public YuGiOhRepositoryTests()
    {
        var mockRepoConfig = new Mock <IYuGiOhRepositoryConfiguration>();

        mockRepoConfig
        .Setup(repoConfig => repoConfig.GetYuGiOhDbConnection())
        .Returns(() => new NpgsqlConnection(Config.Instance.DbConnectionString !.YuGiOh));

        _yugiohRepo = new YuGiOhRepository(mockRepoConfig.Object);
    }
示例#2
0
 public Dev(
     ILoggerFactory loggerFactory,
     Cache cache,
     IYuGiOhDbService yuGiOhDbService,
     IGuildConfigDbService guildConfigDbService,
     Web web,
     IYuGiOhRepository yuGiOhRepository
     ) : base(loggerFactory, cache, yuGiOhDbService, guildConfigDbService, web)
 {
     _yugiohRepo = yuGiOhRepository;
 }
示例#3
0
 public Dev(
     ILoggerFactory loggerFactory,
     Cache cache,
     IYuGiOhDbService yuGiOhDbService,
     IGuildConfigDbService guildConfigDbService,
     Web web,
     Random rand,
     InteractionService interactionService,
     IYuGiOhRepository yugiohRepo
     ) : base(loggerFactory, cache, yuGiOhDbService, guildConfigDbService, web, rand)
 {
     _interactionService = interactionService;
     _yugiohRepo         = yugiohRepo;
 }
示例#4
0
 public YuGiOhDbService(IYuGiOhRepository repo)
 => _repo = repo;