Пример #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);
 }
Пример #4
0
 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();
        }
Пример #9
0
 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;
 }
Пример #18
0
        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;
 }
Пример #25
0
 public LessonController(ILessonService lessonService, ISignUpPersonLessonService signUpPersonLessonService,
                         INumberLessonService numberLessonService, ITimeTableService timeTableService, IPersonService personServiceService)
 {
     SignUpPersonLessonService = signUpPersonLessonService;
     LessonService             = lessonService;
     NumberLessonService       = numberLessonService;
     TimeTableService          = timeTableService;
     PersonServiceService      = personServiceService;
 }
Пример #26
0
 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");
 }
Пример #28
0
 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;
 }
Пример #33
0
        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;
 }