示例#1
0
 public AddUpdateNoticeViewModel(INoticeHandler noticeHandler,
                                 ICourseHandler courseHandler, IPreferenceEngine preferenceEngine)
 {
     _noticeHandler    = noticeHandler;
     _courseHandler    = courseHandler;
     PostTypes         = Enum.GetValues(typeof(PostType)).Cast <PostType>();
     DBFiles           = new ObservableCollection <DBFile>();
     _preferneceEngine = preferenceEngine;
 }
示例#2
0
        public async Task SetUp()
        {
            LogEngine.IsDetailed = true;
            var http = new Mobile.Core.Worker.HttpWorker(TestConstants.WebAddress);

            member        = new MemberEngine(http);
            courseHandler = new CourseEngine(http);
            await member.Login("181909", "qbQ890ZC");
        }
示例#3
0
 public AddUpdateCourseViewModel(ICourseHandler courseHandler,
                                 IPreferenceEngine preferenceEngine,
                                 ILessonHandler lessonHandler)
 {
     _courseHandler = courseHandler;
     _lessonHandler = lessonHandler;
     _filePicker    = preferenceEngine;
     Lessons        = new ObservableCollection <Lesson>();
     DBFiles        = new ObservableCollection <DBFile>();
 }
 public CoursesController(ICourseHandler courseHandler)
 {
     _courseHandler = courseHandler;
 }
示例#5
0
 public AdminController(ICourseHandler _ch)
 {
     this.CourseHandler = _ch;
 }
示例#6
0
 public CoursesViewModel(ICourseHandler courseHandler)
 {
     _courseHandler = courseHandler;
 }
示例#7
0
 public SemesterViewModel(ICourseHandler courseHandler)
 {
     _courseHandler = courseHandler;
 }
示例#8
0
 public CourseController(ICourseHandler _ch)
 {
     this.CourseHandler = _ch;
 }
 public CourseDetailViewModel(ICourseHandler courseHandler, IPreferenceEngine preferenceEngine)
 {
     _courseHandler    = courseHandler;
     _preferenceEngine = preferenceEngine;
 }