/// <summary> /// Constructor used by the web application itself /// </summary> public ElectiveListsController() { CourseDBContext context = new CourseDBContext(); electiveLists = new GenericRepository<ElectiveList>(new StorageContext<ElectiveList>(context)); courses = new GenericRepository<Course>(new StorageContext<Course>(context)); electiveListCourses = new GenericRepository<ElectiveListCourse>(new StorageContext<ElectiveListCourse>(context)); }
public UsersController() { CourseDBContext context = new CourseDBContext(); users = new GenericRepository<User>(new StorageContext<User>(context)); roles = new RolesImpl(); webSecurity = new WebSecurityImpl(); }
/// <summary> /// Constructor used by the web application itself /// </summary> public ElectiveListsController() { CourseDBContext context = new CourseDBContext(); //electiveLists = new GenericRepository<ElectiveList>(new StorageContext<ElectiveList>(context)); //courses = new GenericRepository<Course>(new StorageContext<Course>(context)); //electiveListCourses = new GenericRepository<ElectiveListCourse>(new StorageContext<ElectiveListCourse>(context)); _electiveListProducer = new BasicMessageQueueProducer<ElectiveList>(); _courseProducer = new BasicMessageQueueProducer<Course>(); _electiveListCourseProducer = new BasicMessageQueueProducer<ElectiveListCourse>(); }
/// <summary> /// Constructor used by the web application itself /// </summary> public DegreeProgramsController() { CourseDBContext context = new CourseDBContext(); //degreePrograms = new GenericRepository<DegreeProgram>(new StorageContext<DegreeProgram>(context)); //requiredCourses = new GenericRepository<RequiredCourse>(new StorageContext<RequiredCourse>(context)); //electiveCourses = new GenericRepository<ElectiveCourse>(new StorageContext<ElectiveCourse>(context)); //electiveLists = new GenericRepository<ElectiveList>(new StorageContext<ElectiveList>(context)); //courses = new GenericRepository<Course>(new StorageContext<Course>(context)); _degreeProgramProducer = new BasicMessageQueueProducer<DegreeProgram>(); _requiredCourseProducer = new BasicMessageQueueProducer<RequiredCourse>(); _electiveCourseProducer = new BasicMessageQueueProducer<ElectiveCourse>(); _electiveListProducer = new BasicMessageQueueProducer<ElectiveList>(); _courseProducer = new BasicMessageQueueProducer<Course>(); }
public PlansController() { CourseDBContext context = new CourseDBContext(); //plans = new GenericRepository<Plan>(new StorageContext<Plan>(context)); //planCourses = new GenericRepository<PlanCourse>(new StorageContext<PlanCourse>(context)); //semesters = new GenericRepository<Semester>(new StorageContext<Semester>(context)); users = new GenericRepository<User>(new StorageContext<User>(context)); //degreePrograms = new GenericRepository<DegreeProgram>(new StorageContext<DegreeProgram>(context)); roles = new RolesImpl(); webSecurity = new WebSecurityImpl(); _planProducer = new BasicMessageQueueProducer<Plan>(); _planCourseProducer = new BasicMessageQueueProducer<PlanCourse>(); _semesterProducer = new BasicMessageQueueProducer<Semester>(); _degreeProgramProducer = new BasicMessageQueueProducer<DegreeProgram>(); }
/// <summary> /// Constructor used by the web application itself /// </summary> public DegreeProgramsController() { CourseDBContext context = new CourseDBContext(); degreePrograms = new GenericRepository<DegreeProgram>(new StorageContext<DegreeProgram>(context)); requiredCourses = new GenericRepository<RequiredCourse>(new StorageContext<RequiredCourse>(context)); electiveCourses = new GenericRepository<ElectiveCourse>(new StorageContext<ElectiveCourse>(context)); electiveLists = new GenericRepository<ElectiveList>(new StorageContext<ElectiveList>(context)); courses = new GenericRepository<Course>(new StorageContext<Course>(context)); if (!MessageQueue.Exists(REQUEST_QUEUE)) _request_queue = MessageQueue.Create(REQUEST_QUEUE); else _request_queue = new MessageQueue(REQUEST_QUEUE); if (!MessageQueue.Exists(RESPONSE_QUEUE)) _response_queue = MessageQueue.Create(RESPONSE_QUEUE); else _response_queue = new MessageQueue(RESPONSE_QUEUE); }
public PlansController() { CourseDBContext context = new CourseDBContext(); plans = new GenericRepository<Plan>(new StorageContext<Plan>(context)); planCourses = new GenericRepository<PlanCourse>(new StorageContext<PlanCourse>(context)); semesters = new GenericRepository<Semester>(new StorageContext<Semester>(context)); users = new GenericRepository<User>(new StorageContext<User>(context)); degreePrograms = new GenericRepository<DegreeProgram>(new StorageContext<DegreeProgram>(context)); if (!MessageQueue.Exists(REQUEST_QUEUE)) _request_queue = MessageQueue.Create(REQUEST_QUEUE); else _request_queue = new MessageQueue(REQUEST_QUEUE); if (!MessageQueue.Exists(RESPONSE_QUEUE)) _response_queue = MessageQueue.Create(RESPONSE_QUEUE); else _response_queue = new MessageQueue(RESPONSE_QUEUE); roles = new RolesImpl(); webSecurity = new WebSecurityImpl(); }
/// <summary> /// Constructor used by the web application itself /// </summary> public CoursesController() { CourseDBContext context = new CourseDBContext(); courses = new GenericRepository<Course>(new StorageContext<Course>(context)); prerequisiteCourses = new GenericRepository<PrerequisiteCourse>(new StorageContext<PrerequisiteCourse>(context)); }