Exemplo n.º 1
0
 public CourseService(ILogger <CourseService> logger, IMongoDatabase database, ISchoolScheduleProxy scheduleProxy, ISchoolCourseProxy courseProxy)
 {
     _logger        = logger;
     _database      = database;
     _scheduleProxy = scheduleProxy;
     _courseProxy   = courseProxy;
 }
Exemplo n.º 2
0
        public FindCoursesTest(Mongo2GoFixture mongoFixture)
        {
            _mongoFixture     = mongoFixture;
            _loggerMockCourse = new Mock <ILogger <CourseService> >();
            _database         = _mongoFixture.MongoClient.GetDatabase("StudentsDB");
            var options = GetProxyOptions();

            _schoolScheduleProxy = new SchoolScheduleProxy(options);
            _schoolCourseProxy   = new SchoolCourseProxy(options);
        }
Exemplo n.º 3
0
 public TimetableController(ILogger <TimetableController> logger,
                            ISchoolScheduleProxy schoolScheduleProxy,
                            IStudentService studentService,
                            IUserService userService,
                            ICourseService courseService,
                            IBlockChangesService blockChangesService
                            )
 {
     _logger = logger;
     _schoolScheduleProxy = schoolScheduleProxy;
     _studentService      = studentService;
     _userService         = userService;
     _courseService       = courseService;
     _blockChangesService = blockChangesService;
 }