public void InitTest()
        {
            var unitOfWork = Mock.Of <IUnitOfWork>();

            var userRepository = new UserRepositoryTest(unitOfWork);

            _userService = new UserService(unitOfWork, userRepository);


            var subjectRepository = new SubjectRepositoryTest(unitOfWork);
            var subjectService    = new SubjectService(unitOfWork, subjectRepository);

            var exampRepository = new ExamRepositoryTest(unitOfWork);
            var examService     = new ExamService(unitOfWork, exampRepository);

            var userEvaluateRepository = new UserEvaluateRepositoryTest(unitOfWork);
            var userEvaluateService    = new UserEvaluateService(unitOfWork, userEvaluateRepository);

            var userNoteRepository = new UserNoteRepositoryTest(unitOfWork);

            _userNoteService = new UserNoteService(unitOfWork, userNoteRepository, subjectService, examService, userEvaluateService);

            var studentRepository = new StudentRepositoryTest(unitOfWork);

            _service = new StudentService(unitOfWork, studentRepository, _userService, _userNoteService);
        }
 public PartialsController(
     IUserNoteService _UserNoteService)
 {
     this._UserNoteService = _UserNoteService;
 }
 public UserNoteController(IUserNoteService userNoteService)
 {
     _userNoteService = userNoteService;
 }
예제 #4
0
 public UserNoteAppService(IUserNoteService userNoteService) : base(userNoteService)
 {
     _userNoteService = userNoteService;
 }