Exemplo n.º 1
0
 public MasterViewModel(
     IMvxMessenger messenger,
     ISecurityService securityService,
     IWebNavigation webNavigation,
     ISystemInfo systemInfo,
     IAppVersionService appVersionService,
     IStudentDataService studentDataService,
     IRefreshDataService refreshDataService,
     IAbsenceDataService absenceDataService,
     IEvaluationDataService evaluationDataService,
     IEventDataService eventDataService,
     ILessonDataService lessonDataService,
     INoteDataService noteDataService,
     IUzenetDataService uzenetDataService,
     IExamDataService examDataService)
 {
     this._messenger             = messenger;
     this._securityService       = securityService;
     this._webNavigation         = webNavigation;
     this._systemInfo            = systemInfo;
     this._appVersionService     = appVersionService;
     this._studentDataService    = studentDataService;
     this._refreshDataService    = refreshDataService;
     this._absenceDataService    = absenceDataService;
     this._evaluationDataService = evaluationDataService;
     this._eventDataService      = eventDataService;
     this._lessonDataService     = lessonDataService;
     this._noteDataService       = noteDataService;
     this._uzenetDataService     = uzenetDataService;
     this._examDataService       = examDataService;
 }
Exemplo n.º 2
0
 public ListItemCreator(Profile profile)
 {
     this._profile               = profile;
     this._absenceDataService    = (IAbsenceDataService)Mvx.get_IoCProvider().Resolve <IAbsenceDataService>();
     this._evaluationDataService = (IEvaluationDataService)Mvx.get_IoCProvider().Resolve <IEvaluationDataService>();
     this._eventDataService      = (IEventDataService)Mvx.get_IoCProvider().Resolve <IEventDataService>();
     this._lessonDataService     = (ILessonDataService)Mvx.get_IoCProvider().Resolve <ILessonDataService>();
     this._noteDataService       = (INoteDataService)Mvx.get_IoCProvider().Resolve <INoteDataService>();
     this._examDataService       = (IExamDataService)Mvx.get_IoCProvider().Resolve <IExamDataService>();
 }
 public PushNotificationService()
 {
     this._pushNotificationHandler  = (IPushNotificationHandler)Mvx.get_IoCProvider().Resolve <IPushNotificationHandler>();
     this._parsedMessageDataService = (IParsedMessageDataService)Mvx.get_IoCProvider().Resolve <IParsedMessageDataService>();
     this._profileDataService       = (IProfileDataService)Mvx.get_IoCProvider().Resolve <IProfileDataService>();
     this._evaluationDataService    = (IEvaluationDataService)Mvx.get_IoCProvider().Resolve <IEvaluationDataService>();
     this._absenceDataService       = (IAbsenceDataService)Mvx.get_IoCProvider().Resolve <IAbsenceDataService>();
     this._noteDataService          = (INoteDataService)Mvx.get_IoCProvider().Resolve <INoteDataService>();
     this._uzenetDataService        = (IUzenetDataService)Mvx.get_IoCProvider().Resolve <IUzenetDataService>();
     this._lessonDataService        = (ILessonDataService)Mvx.get_IoCProvider().Resolve <ILessonDataService>();
     this._examDataService          = (IExamDataService)Mvx.get_IoCProvider().Resolve <IExamDataService>();
 }
 public RefreshDataService()
 {
     this._profileDataService        = (IProfileDataService)Mvx.get_IoCProvider().Resolve <IProfileDataService>();
     this._absenceDataService        = (IAbsenceDataService)Mvx.get_IoCProvider().Resolve <IAbsenceDataService>();
     this._evaluationDataService     = (IEvaluationDataService)Mvx.get_IoCProvider().Resolve <IEvaluationDataService>();
     this._noteDataService           = (INoteDataService)Mvx.get_IoCProvider().Resolve <INoteDataService>();
     this._lessonDataService         = (ILessonDataService)Mvx.get_IoCProvider().Resolve <ILessonDataService>();
     this._eventDataService          = (IEventDataService)Mvx.get_IoCProvider().Resolve <IEventDataService>();
     this._subjectAverageDataService = (ISubjectAverageDataService)Mvx.get_IoCProvider().Resolve <ISubjectAverageDataService>();
     this._studentDataService        = (IStudentDataService)Mvx.get_IoCProvider().Resolve <IStudentDataService>();
     this._uzenetDataService         = (IUzenetDataService)Mvx.get_IoCProvider().Resolve <IUzenetDataService>();
     this._examDataService           = (IExamDataService)Mvx.get_IoCProvider().Resolve <IExamDataService>();
     this._mobileApi       = (IMobileApi)Mvx.get_IoCProvider().Resolve <IMobileApi>();
     this._globalMobileApi = (IGlobalMobileApi)Mvx.get_IoCProvider().Resolve <IGlobalMobileApi>();
     this._messenger       = (IMvxMessenger)Mvx.get_IoCProvider().Resolve <IMvxMessenger>();
 }
 public RootContentViewModel(
     IRefreshDataService refreshDataService,
     IMvxMessenger messenger,
     IPushNotificationService pushNotificationService,
     ISettingsDataService settingsDataService,
     IAbsenceDataService absenceDataService,
     IAbsenceDbDataService absenceDbDataService,
     IEvaluationDataService evaluationDataService,
     IEvaluationDbDataService evaluationDbDataService,
     IEventDataService eventDataService,
     IExamDataService examDataService,
     IExamDbDataService examDbDataService,
     INoteDataService noteDataService,
     INoteDbDataService noteDbDataService,
     ILessonDataService lessonDataService,
     ILessonDbDataService lessonDbDataService,
     IUzenetDataService uzenetDataService,
     IRatingDataService ratingDataService,
     IPushNotificationPlatformSpecificService pushNotificationPlatformSpecificService,
     IFirebaseAnalytics firebaseAnalytics,
     IFirebaseRemoteConfigurationService remoteConfigurationService)
 {
     this._refreshDataService      = refreshDataService;
     this._messenger               = messenger;
     this._pushNotificationService = pushNotificationService;
     this._settingsDataService     = settingsDataService;
     this._absenceDataService      = absenceDataService;
     this._absenceDbDataService    = absenceDbDataService;
     this._evaluationDataService   = evaluationDataService;
     this._evaluationDbDataService = evaluationDbDataService;
     this._eventDataService        = eventDataService;
     this._examDataService         = examDataService;
     this._examDbDataService       = examDbDataService;
     this._noteDataService         = noteDataService;
     this._noteDbDataService       = noteDbDataService;
     this._lessonDataService       = lessonDataService;
     this._lessonDbDataService     = lessonDbDataService;
     this._uzenetDataService       = uzenetDataService;
     this._pushNotificationPlatformSpecificService = pushNotificationPlatformSpecificService;
     this._firebaseAnalytics          = firebaseAnalytics;
     this._ratingDataService          = ratingDataService;
     this._remoteConfigurationService = remoteConfigurationService;
 }
Exemplo n.º 6
0
 public AuthDbDataService()
 {
     this._mobileApi                  = (IDbMobileApi)Mvx.get_IoCProvider().Resolve <IDbMobileApi>();
     this._tokenValidator             = (ITokenValidatorDb)Mvx.get_IoCProvider().Resolve <ITokenValidatorDb>();
     this._messenger                  = (IMvxMessenger)Mvx.get_IoCProvider().Resolve <IMvxMessenger>();
     this._secureStore                = (ISecureStore)Mvx.get_IoCProvider().Resolve <ISecureStore>();
     this._profileDataService         = (IProfileDbDataService)Mvx.get_IoCProvider().Resolve <IProfileDbDataService>();
     this._absenceDataService         = (IAbsenceDbDataService)Mvx.get_IoCProvider().Resolve <IAbsenceDbDataService>();
     this._evaluationDataService      = (IEvaluationDataService)Mvx.get_IoCProvider().Resolve <IEvaluationDataService>();
     this._noteDataService            = (INoteDbDataService)Mvx.get_IoCProvider().Resolve <INoteDbDataService>();
     this._lessonDataService          = (ILessonDataService)Mvx.get_IoCProvider().Resolve <ILessonDataService>();
     this._subjectAverageDataService  = (ISubjectAverageDataService)Mvx.get_IoCProvider().Resolve <ISubjectAverageDataService>();
     this._studentDataService         = (IStudentDataService)Mvx.get_IoCProvider().Resolve <IStudentDataService>();
     this._eventDataService           = (IEventDataService)Mvx.get_IoCProvider().Resolve <IEventDataService>();
     this._teacherHomeWorkDataService = (ITeacherHomeWorkDataService)Mvx.get_IoCProvider().Resolve <ITeacherHomeWorkDataService>();
     this._studentHomeWorkDataService = (IStudentHomeWorkDataService)Mvx.get_IoCProvider().Resolve <IStudentHomeWorkDataService>();
     this._cacheDataService           = (ICacheDataService)Mvx.get_IoCProvider().Resolve <ICacheDataService>();
     this._uzenetDataService          = (IUzenetDataService)Mvx.get_IoCProvider().Resolve <IUzenetDataService>();
     this._examDataService            = (IExamDataService)Mvx.get_IoCProvider().Resolve <IExamDataService>();
     this._instituteDataService       = (IInstituteDataService)Mvx.get_IoCProvider().Resolve <IInstituteDataService>();
 }
 public void SetUp()
 {
     examDataService = MockRepository.GenerateMock<IExamDataService>();
     examService = new ExamService(examDataService);
 }
Exemplo n.º 8
0
 public ExamService(IExamDataService examDataService = null)
 {
     if (examDataService == null)
         examDataService = DAOFactoryMethod.CurrentDAOFactory.ExamDataService;
     this.examDataService = examDataService;
 }
Exemplo n.º 9
0
 public ExamController(ExamDataService examDataService)
 {
     this.examDataService = examDataService;
 }