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