public TestPaperController(
     IHostEnvironment _host,
     IDataRepository <TestCategory> _TestCategoryManager,
     IDataRepository <ReadingPartOne> _ReadingPartOneManager,
     IDataRepository <ReadingPartTwo> _ReadingPartTwoManager,
     IDataRepository <ListeningMedia> _ListeningMediaManager,
     IDataRepository <ListeningBaseQuestion> _ListeningBaseQuestionManager,
     IDataRepository <WritingPartOne> _WritingPartOneManager,
     IDataRepository <WritingPartTwo> _WritingPartTwoManager,
     IDataRepository <PieceOfTest> _PieceOfTestManager,
     IDataRepository <SpeakingEmbed> _SpeakingEmbedManager,
     IDataRepository <User> _UserManager)
 {
     host = _host;
     this._TestCategoryManager          = (TestCategoryManager)_TestCategoryManager;
     this._ReadingPartOneManager        = (ReadingPartOneManager)_ReadingPartOneManager;
     this._ReadingPartTwoManager        = (ReadingPartTwoManager)_ReadingPartTwoManager;
     this._ListeningMediaManager        = (ListeningMediaManager)_ListeningMediaManager;
     this._ListeningBaseQuestionManager = (ListeningBaseQuestionManager)_ListeningBaseQuestionManager;
     this._WritingPartOneManager        = (WritingPartOneManager)_WritingPartOneManager;
     this._WritingPartTwoManager        = (WritingPartTwoManager)_WritingPartTwoManager;
     this._PieceOfTestManager           = (PieceOfTestManager)_PieceOfTestManager;
     this._SpeakingEmbedManager         = (SpeakingEmbedManager)_SpeakingEmbedManager;
     this._UserManager = (UserManager)_UserManager;
 }
Beispiel #2
0
 public WritingManagerController(
     IHostEnvironment _host,
     IDataRepository <User> _UserManager,
     IDataRepository <UserType> _UserTypeManager,
     IDataRepository <TestCategory> _TestCategoryManager,
     IDataRepository <WritingPartOne> _WritingPartOneManager,
     IDataRepository <WritingPartTwo> _WritingPartTwoManager)
 {
     host = _host;
     this._UserManager           = (UserManager)_UserManager;
     this._UserTypeManager       = (UserTypeManager)_UserTypeManager;
     this._TestCategoryManager   = (TestCategoryManager)_TestCategoryManager;
     this._WritingPartOneManager = (WritingPartOneManager)_WritingPartOneManager;
     this._WritingPartTwoManager = (WritingPartTwoManager)_WritingPartTwoManager;
 }