Esempio n. 1
0
 public CourseController(ICourseService courseService, ILessonService lessonService, IUserService userService, IReminderService reminderService)
 {
     _courseService   = courseService;
     _lessonService   = lessonService;
     _userService     = userService;
     _reminderService = reminderService;
 }
Esempio n. 2
0
 public LessonController(ILessonService lessonService, ITutorLessonService tutorLessonService, ILessonCommentService lessonCommentService, IKullaniciService kullaniciService)
 {
     _lessonService        = lessonService;
     _tutorLessonService   = tutorLessonService;
     _lessonCommentService = lessonCommentService;
     _kullaniciService     = kullaniciService;
 }
Esempio n. 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;
 }
Esempio n. 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;
 }
Esempio n. 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;
 }
Esempio n. 11
0
 public AccountController(IKullaniciService kullaniciService, IGirisService girisService, IConfiguration configuration, ITutorLessonService tutorLessonService, ILessonService lessonService)
 {
     Configuration       = configuration;
     _kullaniciService   = kullaniciService;
     _girisService       = girisService;
     _tutorLessonService = tutorLessonService;
     _lessonService      = lessonService;
 }
Esempio n. 12
0
        public Lessons()
        {
            InitializeComponent();

            _lessonService     = InstanceFactory.GetInstance <ILessonService>();
            _departmentService = InstanceFactory.GetInstance <IDepartmentService>();
            _lecturerService   = InstanceFactory.GetInstance <ILecturerService>();
        }
Esempio n. 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;
 }
Esempio n. 14
0
 public LessonController()
 {
     userService     = new UserServiceImpl();
     lessonService   = new LessonServiceImpl();
     languageService = new LanguageServiceImpl();
     countryService  = new CountryServiceImpl();
     taskService     = new TaskServiceImpl();
 }
Esempio n. 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;
 }
Esempio n. 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> >();
 }
Esempio n. 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;
 }
Esempio n. 18
0
        public LogLessonServiceWrapper(ILessonService lessonService)
        {
            if (lessonService == null)
            {
                throw new ArgumentNullException("lessonService");
            }

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

            _lessonService = lessonService;
        }
Esempio n. 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;
 }
Esempio n. 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;
 }
Esempio n. 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;
 }
Esempio n. 25
0
 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;
 }
Esempio n. 29
0
 public ModuleController(
     IModuleService moduleService,
     ILessonService lessonService,
     IMapper mapper,
     IOptions <AppSettings> appSettings)
 {
     _lessonService = lessonService;
     _moduleService = moduleService;
     _mapper        = mapper;
     _appSettings   = appSettings;
 }
Esempio n. 30
0
 public LessonsController(
     ILessonService lessonService,
     ISchoolclassService schoolclassService,
     ITeacherService teacherService,
     IPeriodService periodService)
 {
     _lessonService      = lessonService;
     _schoolclassService = schoolclassService;
     _teacherService     = teacherService;
     _periodService      = periodService;
 }
Esempio n. 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;
 }
Esempio n. 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);
        }
Esempio n. 35
0
 public LessonController()
 {
     this.lessonService = new LessonService();
     this.subcategoryService = new SubcategoryService();
 }
Esempio n. 36
0
 public LessonController(ILessonService lessonService)
 {
     this.lessonService = lessonService;
 }
Esempio n. 37
0
 public LessonController(ILessonService lessonService, ISubcategoryService subcategoryService)
 {
     this.lessonService = lessonService;
     this.subcategoryService = subcategoryService;
 }
Esempio n. 38
0
 public AdminController(ILessonService lessonService,
     ICategoryService categoryService)
 {
     _lessonService = lessonService;
     _categoryService = categoryService;
 }
Esempio n. 39
0
 public LessonController(ICategoryService categoryService,
     ILessonService lessonService)
 {
     _categoryService = categoryService;
     _lessonService = lessonService;
 }
Esempio n. 40
0
 public LessonController()
 {
     this.lessonService = new LessonService();
     this.groupService = new GroupService();
 }
Esempio n. 41
0
 public LessonController(ILessonService lessonService, IGroupService groupService)
 {
     this.lessonService = lessonService;
     this.groupService = groupService;
 }