コード例 #1
0
 public SurveyController()
 {
     _context = new ApplicationDbContext();
     _repoC   = new ClientRepository();
     _repoA   = new SurveyAnswerRepository();
     _repoT   = new SurveyTicketRepository();
     _repoQ   = new QuestionRepository();
 }
コード例 #2
0
        public UnitOfWork(ApplicationEntities context)
        {
            _context = context;

            Users           = new AspNetUserRepository(_context);
            Roles           = new AspNetRoleRepository(_context);
            Companies       = new CompanyRepository(_context);
            Beacons         = new BeaconRepository(_context);
            SurveyAnswers   = new SurveyAnswerRepository(_context);
            SurveyQuestions = new SurveyQuestionRepository(_context);
        }
コード例 #3
0
 public SurveyController(
     MerlinReadContext readContext,
     LayoutRepository layoutRepository,
     SurveyService service,
     SurveyRules rules,
     SurveyAnswerRules answerRules,
     MerlinReadStore readStore,
     SurveyAnswerRepository surveyAnswerRepository)
 {
     this.readContext            = readContext;
     this.layoutRepository       = layoutRepository;
     this.service                = service;
     this.rules                  = rules;
     this.answerRules            = answerRules;
     this.readStore              = readStore;
     this.surveyAnswerRepository = surveyAnswerRepository;
 }
コード例 #4
0
 public void initialize()
 {
     surveyAnswerRepo = new SurveyAnswerRepository();
 }
コード例 #5
0
 private SurveyService()
 {
     surveyRepo       = new SurveyRepository();
     surveyAnswerRepo = new SurveyAnswerRepository();
 }