public frmMain() { InitializeComponent(); _strapiApi = new StrapiApi(); var mongoRepositoryFactory = new MongoRepositoryFactory(new ConnectionStringFactory()); _serverToolsRepository = new ServerToolsRepository(mongoRepositoryFactory); _logger = new Logger(mongoRepositoryFactory); }
public WikiController(IUsefulLinkRepository usefulLinkRepository, IStrapiApi strapiApi) { _usefulLinkRepository = usefulLinkRepository; var connectionString = new ConnectionStringFactory(); var mongoRepository = new MongoRepositoryFactory(connectionString); _logger = new Logger(mongoRepository); _strapiApi = strapiApi; }
public MatchesController(IPlayerRepository playerRepository, IDemoRepository demoRepository, IStrapiApi strapiApi) { _playerRepository = playerRepository; _demoRepository = demoRepository; _steamApi = new SteamApi(); _strapiApi = strapiApi; _mapInfos = _strapiApi.GetAllMapInfos(); _matchDummyCacheManager = new DummyCacheManager(new MatchDummyCacheFactory()); }
public MongoRepositoryFactoryTests() { _connectionString = new ConnectionStringFactory(); _mongoRepository = new MongoRepositoryFactory(_connectionString); _strapiApi = new StrapiApi(); _logRepository = new LogsRepository(_mongoRepository); _playerRepository = new PlayerRepository(_mongoRepository, _strapiApi); _baseRepository = new BaseRepository(_mongoRepository); _usefulLinkRepository = new UsefulLinkRepository(_mongoRepository); _userRepository = new UserRepository(_mongoRepository); _registrationService = new UserRegistrationService(_userRepository); }
public HomeController(IPlayerRepository playerRepository, IStrapiApi strapiApi, ILogFileRepository logFileRepository) { _playerRepository = playerRepository; _strapiApi = strapiApi; _statDummyCacheManager = new DummyCacheManager(new StatDummyCacheFactory()); }
public ServerInfoController(IServerQueries serverQueries, IStrapiApi strapiApi) { _serverQueries = serverQueries; _strapiApi = strapiApi; }
public PlayerRepository(IMongoRepositoryFactory mongoRepository, IStrapiApi strapiApi) : base(mongoRepository) { _mongoRepository = mongoRepository; _logsRepository = new LogsRepository(_mongoRepository); _strapiApi = strapiApi; }