Example #1
0
 public SurveyController()
 {
     _context = new ApplicationDbContext();
     _repoC   = new ClientRepository();
     _repoA   = new SurveyAnswerRepository();
     _repoT   = new SurveyTicketRepository();
     _repoQ   = new QuestionRepository();
 }
Example #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);
        }
Example #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;
 }
Example #4
0
 public void initialize()
 {
     surveyAnswerRepo = new SurveyAnswerRepository();
 }
 private SurveyService()
 {
     surveyRepo       = new SurveyRepository();
     surveyAnswerRepo = new SurveyAnswerRepository();
 }