public YuGiOhRepositoryTests() { var mockRepoConfig = new Mock <IYuGiOhRepositoryConfiguration>(); mockRepoConfig .Setup(repoConfig => repoConfig.GetYuGiOhDbConnection()) .Returns(() => new NpgsqlConnection(Config.Instance.DbConnectionString !.YuGiOh)); _yugiohRepo = new YuGiOhRepository(mockRepoConfig.Object); }
public Dev( ILoggerFactory loggerFactory, Cache cache, IYuGiOhDbService yuGiOhDbService, IGuildConfigDbService guildConfigDbService, Web web, IYuGiOhRepository yuGiOhRepository ) : base(loggerFactory, cache, yuGiOhDbService, guildConfigDbService, web) { _yugiohRepo = yuGiOhRepository; }
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; }
public YuGiOhDbService(IYuGiOhRepository repo) => _repo = repo;