Exemple #1
0
        public QuestionService(IJobApplicationsDatabaseSettings settings)
        {
            var client   = new MongoClient(settings.ConnectionString);
            var database = client.GetDatabase(settings.DatabaseName);

            _questions = database.GetCollection <QuestionContent>(settings.QuestionsCollectionName);
        }
        public JobApplicationService(IJobApplicationsDatabaseSettings settings, QuestionService questionService)
        {
            var client   = new MongoClient(settings.ConnectionString);
            var database = client.GetDatabase(settings.DatabaseName);

            _jobApplications = database.GetCollection <JobApplication>(settings.JobApplicationsCollectionName);

            _questionService = questionService;
        }