示例#1
0
 public CourseController(ICourseService courseService, ILessonService lessonService, IUserService userService, IReminderService reminderService)
 {
     _courseService   = courseService;
     _lessonService   = lessonService;
     _userService     = userService;
     _reminderService = reminderService;
 }
示例#2
0
 public LessonController(ILessonService lessonService, ITutorLessonService tutorLessonService, ILessonCommentService lessonCommentService, IKullaniciService kullaniciService)
 {
     _lessonService        = lessonService;
     _tutorLessonService   = tutorLessonService;
     _lessonCommentService = lessonCommentService;
     _kullaniciService     = kullaniciService;
 }
示例#3
0
 public void Setup()
 {
     teacherRepositoryMock = new Mock <ITeacherRepository>();
     mapperMock            = new Mock <IMapper>();
     subjectProviderMock   = new Mock <ISubjectProvider>();
     lessonService         = new LessonService(mapperMock.Object, teacherRepositoryMock.Object, subjectProviderMock.Object);
 }
 public AdminController(ILessonService lessonService, IQuestionsService questionsService, RoleManager <IdentityRole> roleManager, UserManager <AppUser> userManager)
 {
     _roleManager      = roleManager;
     _lessonService    = lessonService;
     _questionsService = questionsService;
     _userManager      = userManager;
 }
 public TutorScheduleController(ITutorScheduleService tutorScheduleService, ILessonService lessonService, ITutorLessonService tutorLessonService, IKullaniciService kullaniciService)
 {
     _tutorScheduleService = tutorScheduleService;
     _lessonService        = lessonService;
     _tutorLessonService   = tutorLessonService;
     _kullaniciService     = kullaniciService;
 }
示例#6
0
        // private readonly IAvailableTimePeriodService _availableTimePeriodService;

        public DataInitializer(IUserService userService, ITeacherService teacherService,
                               ILessonService lessonService)
        {
            _userService    = userService;
            _teacherService = teacherService;
            _lessonService  = lessonService;
        }
 public SignUpPersonLessonService(IRepository <SignUpPersonLesson> repository,
                                  IPersonService personService, ILessonService lessonService, ISubjectService subjectService) : base(repository)
 {
     LessonService  = lessonService;
     PersonService  = personService;
     SubjectService = subjectService;
 }
示例#8
0
        public void Update_ChangeLessons1_Verify_MethodCalled()
        {
            //Arrange
            Teacher teacher = new Teacher
            {
                Name    = "Roman",
                Surname = "Kutsenko",
                Post    = "Teacher",
                Lessons = new List <Lesson>()
            };
            Group group = new Group
            {
                CourseNumber = 1,
                GroupNumber  = 19,
                Lessons      = new List <Lesson>()
            };

            Lesson[] lessons =
            {
                new Lesson
                {
                    WeekNumber   = Week.FirstWeek,
                    DayOfTheWeek = Day.Thursday,
                    LessonNumber = 1,
                    LessonName   = "Programming",
                    Group        = group,
                    Teacher      = teacher
                },
                new Lesson
                {
                    WeekNumber   = Week.SecondWeek,
                    DayOfTheWeek = Day.Monday,
                    LessonNumber = 3,
                    LessonName   = "Math",
                    Group        = group,
                    Teacher      = teacher
                },
                new Lesson
                {
                    WeekNumber   = Week.FirstWeek,
                    DayOfTheWeek = Day.Tuesday,
                    LessonNumber = 3,
                    LessonName   = "Philosophy",
                    Group        = group,
                    Teacher      = teacher
                }
            };
            Mock <ILessonService> service = new Mock <ILessonService>();

            service.Setup(mock => mock.Update(1, lessons[2])).Verifiable();

            //Act
            ILessonService Service = service.Object;

            Service.Update(1, lessons[2]);

            //Assert
            service.VerifyAll();
        }
 public HomeController(ITrainerService trainerService,
                       IStudentService studentService,
                       ILessonService lessonService)
 {
     _trainerService = trainerService;
     _studentService = studentService;
     _lessonService  = lessonService;
 }
 public HomeController(IKullaniciService kullaniciService, ITutorLessonService tutorLessonService, IConfiguration configuration, ILessonService lessonService, IScheduleService scheduleService)
 {
     Configuration       = configuration;
     _kullaniciService   = kullaniciService;
     _tutorLessonService = tutorLessonService;
     _lessonService      = lessonService;
     _scheduleService    = scheduleService;
 }
示例#11
0
 public AccountController(IKullaniciService kullaniciService, IGirisService girisService, IConfiguration configuration, ITutorLessonService tutorLessonService, ILessonService lessonService)
 {
     Configuration       = configuration;
     _kullaniciService   = kullaniciService;
     _girisService       = girisService;
     _tutorLessonService = tutorLessonService;
     _lessonService      = lessonService;
 }
示例#12
0
        public Lessons()
        {
            InitializeComponent();

            _lessonService     = InstanceFactory.GetInstance <ILessonService>();
            _departmentService = InstanceFactory.GetInstance <IDepartmentService>();
            _lecturerService   = InstanceFactory.GetInstance <ILecturerService>();
        }
示例#13
0
 public RoomLessonTeacherController(IRoomLessonTeacherService roomLessonTeacherService, IClassRoomService classRoomService, ILessonService lessonService, ITeacherService teacherService, IBranchService branchService)
 {
     this.roomLessonTeacherService = roomLessonTeacherService;
     this.classRoomService         = classRoomService;
     this.lessonService            = lessonService;
     this.teacherService           = teacherService;
     this.branchService            = branchService;
 }
示例#14
0
 public LessonController()
 {
     userService     = new UserServiceImpl();
     lessonService   = new LessonServiceImpl();
     languageService = new LanguageServiceImpl();
     countryService  = new CountryServiceImpl();
     taskService     = new TaskServiceImpl();
 }
示例#15
0
 public LessonsController(ILessonService lessonService, ICustomerService customerService, IOrderService orderService, ISchoolService schoolService, ITrainerService trainerService)
 {
     this.lessonService   = lessonService;
     this.customerService = customerService;
     this.orderService    = orderService;
     this.schoolService   = schoolService;
     this.trainerService  = trainerService;
 }
示例#16
0
 public LessonServiceFacts(ServiceFixture fixture)
 {
     this.fixture = fixture;
     this.service = this.fixture.ServiceProvider.GetService <ILessonService>();
     this.lessonRepositoryMock         = this.fixture.ServiceProvider.GetService <Mock <IRepository <Lesson> > >();
     this.lessonAttendeeRepositoryMock = this.fixture.ServiceProvider.GetService <Mock <IRepository <LessonAttendee> > >();
     this.unitOfWorkMock = this.fixture.ServiceProvider.GetService <Mock <IUnitOfWork> >();
 }
示例#17
0
 public UserController(ILessonService lessonService, UserManager <AppUser> userManager, IStudentLessonService studentLesson, IQuestionsService questionsService, IExamService examService, IExamResultService examResultService)
 {
     _lessonService     = lessonService;
     _userManager       = userManager;
     _studentLesson     = studentLesson;
     _questionsSerice   = questionsService;
     _examService       = examService;
     _examResultService = examResultService;
 }
        public LogLessonServiceWrapper(ILessonService lessonService)
        {
            if (lessonService == null)
            {
                throw new ArgumentNullException("lessonService");
            }

            _lessonService = lessonService;
        }
示例#19
0
 public LessonController(
     ILessonService lessonService,
     IMapper mapper,
     IOptions <AppSettings> appSettings)
 {
     _lessonService = lessonService;
     _mapper        = mapper;
     _appSettings   = appSettings.Value;
 }
示例#20
0
        public LessonsController(ILessonService lessonService)
        {
            if (lessonService == null)
            {
                throw new ArgumentNullException("lessonService");
            }

            _lessonService = lessonService;
        }
示例#21
0
 public NoteEntryController(INoteEntryService noteEntryService, ITeacherService teacherService, IPeriodInformationService periodInformationService, IClassRoomService classRoomService, IStudentService studentService, ILessonService lessonService)
 {
     this.noteEntryService         = noteEntryService;
     this.teacherService           = teacherService;
     this.periodInformationService = periodInformationService;
     this.classRoomService         = classRoomService;
     this.studentService           = studentService;
     this.lessonService            = lessonService;
 }
示例#22
0
        public LessonController(ILessonService lessonRepository)
        {
            if (lessonRepository == null)
            {
                throw new ArgumentNullException("lessonRepository");
            }

            _lessonRepository = lessonRepository;
        }
 public SyllabusTableController(ITeacherService teacherService, ISyllabusTableService syllabusTableService, IClassRoomService classRoomService, ILessonService lessonService, ILessonHourService lessonHourService, IStudentService studentService)
 {
     this.teacherService       = teacherService;
     this.syllabusTableService = syllabusTableService;
     this.classRoomService     = classRoomService;
     this.lessonService        = lessonService;
     this.lessonHourService    = lessonHourService;
     this.studentService       = studentService;
 }
示例#24
0
 public DataSeeder(IAuthService authService, ICourseService courseService, IUserService userService, ICategoryService categoryService, ISectionService sectionService, ILessonService lessonService)
 {
     _authService   = authService;
     _courseService = courseService;
     _userService   = userService;
     _catService    = categoryService;
     _secService    = sectionService;
     _lesService    = lessonService;
 }
 public LessonController(ILessonService lessonService, ISignUpPersonLessonService signUpPersonLessonService,
                         INumberLessonService numberLessonService, ITimeTableService timeTableService, IPersonService personServiceService)
 {
     SignUpPersonLessonService = signUpPersonLessonService;
     LessonService             = lessonService;
     NumberLessonService       = numberLessonService;
     TimeTableService          = timeTableService;
     PersonServiceService      = personServiceService;
 }
 public LessonsController(ILessonService lessonService,
                          ITrainerService trainerService,
                          IStudentService studentService,
                          IEnumService enumService)
 {
     _lessonService  = lessonService;
     _trainerService = trainerService;
     _studentService = studentService;
     _enumService    = enumService;
 }
 public LessonController(
     ILessonService lessonService,
     ICoachLessonService coachLessonService,
     IUserService userService)
 {
     this._lessonService      = lessonService;
     this._coachLessonService = coachLessonService;
     this._userService        = userService;
     this._logger             = LogManager.GetLogger("apiLogger");
 }
 public CoursesController(ICourseService courseService,
                          ILessonService lessonService,
                          IClassroomService classroomService,
                          ITeacherService teacherService)
 {
     this.courseService    = courseService;
     this.lessonService    = lessonService;
     this.classroomService = classroomService;
     this.teacherService   = teacherService;
 }
示例#29
0
 public ModuleController(
     IModuleService moduleService,
     ILessonService lessonService,
     IMapper mapper,
     IOptions <AppSettings> appSettings)
 {
     _lessonService = lessonService;
     _moduleService = moduleService;
     _mapper        = mapper;
     _appSettings   = appSettings;
 }
示例#30
0
 public LessonsController(
     ILessonService lessonService,
     ISchoolclassService schoolclassService,
     ITeacherService teacherService,
     IPeriodService periodService)
 {
     _lessonService      = lessonService;
     _schoolclassService = schoolclassService;
     _teacherService     = teacherService;
     _periodService      = periodService;
 }
示例#31
0
 public GroupDisciplineController(IGroupService groupService, IAcademicDisciplineService academicDisciplineService,
                                  ILessonService lessonService, ITeacherService teacherService, IGroupDisciplineService groupDisciplineService,
                                  IUnitOfWork unitOfWork)
 {
     _groupService = groupService;
     _academicDisciplineService = academicDisciplineService;
     _lessonService             = lessonService;
     _teacherService            = teacherService;
     _groupDisciplineService    = groupDisciplineService;
     _unitOfWork = unitOfWork;
 }
示例#32
0
 public TutorController(ITutorService tutorService, ILogService staffLog, ITutorRelevantLesson relevantLesson, ILessonService lessonService, UserManager <ApplicationUser> userManager, IUserService userService, RoleManager <Role> roleManager, IGradeService gradeService)
 {
     _tutorService          = tutorService;
     _userService           = userService;
     _roleManager           = roleManager;
     _userManager           = userManager;
     _gradeService          = gradeService;
     _lessonService         = lessonService;
     _relevantLessonService = relevantLesson;
     _staffLog = staffLog;
 }
        public AuthLessonServiceWrapper(
            ILessonService lessonService,
            ClaimsPrincipal principal,
            EntityValidator entityValidator,
            IUserStore<IUserDto, int> userStore,
            ClaimsAuthorizationManager authorizationManager)
        {
            if (lessonService == null)
            {
                throw new ArgumentNullException("lessonService");
            }

            if (principal == null)
            {
                throw new ArgumentNullException("principal");
            }

            if (principal.Identity == null)
            {
                throw new ArgumentException("Principal doesn't contian identity");
            }

            if (!principal.Identity.IsAuthenticated)
            {
                throw new ArgumentException("Identity is not authenticated");
            }

            if (entityValidator == null)
            {
                throw new ArgumentNullException("entityValidator");
            }

            if (userStore == null)
            {
                throw new ArgumentNullException("userStore");
            }

            if (authorizationManager == null)
            {
                throw new ArgumentNullException("authorizationManager");
            }

            _lessonService = lessonService;
            _principal = principal;
            _entityValidator = entityValidator;
            _userStore = userStore;
            _authorizationManager = authorizationManager;
        }
        public AuthLessonServiceWrapperTest()
        {
            _lessonService = A.Fake<ILessonService>();
            _principal = A.Fake<ClaimsPrincipal>();
            _identity = A.Fake<IIdentity>();
            A.CallTo(() => _principal.Identity).Returns(_identity);
            A.CallTo(() => _identity.IsAuthenticated).Returns(true);

            _entityValidator = A.Fake<EntityValidator>();
            _userStore = A.Fake<IUserStore<IUserDto, int>>();
            _authorizationManager = new ClaimsAuthorizationManager();

            _authLessonServiceWrapper = new AuthLessonServiceWrapper(
                _lessonService,
                _principal,
                _entityValidator,
                _userStore,
                _authorizationManager);
        }
示例#35
0
 public LessonController()
 {
     this.lessonService = new LessonService();
     this.subcategoryService = new SubcategoryService();
 }
示例#36
0
 public LessonController(ILessonService lessonService)
 {
     this.lessonService = lessonService;
 }
示例#37
0
 public LessonController(ILessonService lessonService, ISubcategoryService subcategoryService)
 {
     this.lessonService = lessonService;
     this.subcategoryService = subcategoryService;
 }
示例#38
0
 public AdminController(ILessonService lessonService,
     ICategoryService categoryService)
 {
     _lessonService = lessonService;
     _categoryService = categoryService;
 }
示例#39
0
 public LessonController(ICategoryService categoryService,
     ILessonService lessonService)
 {
     _categoryService = categoryService;
     _lessonService = lessonService;
 }
示例#40
0
 public LessonController()
 {
     this.lessonService = new LessonService();
     this.groupService = new GroupService();
 }
示例#41
0
 public LessonController(ILessonService lessonService, IGroupService groupService)
 {
     this.lessonService = lessonService;
     this.groupService = groupService;
 }