public GetFreeAppointmentByDateTests()
        {
            this.db = new KTasevaDbContext(MemoryDatabase.OptionBuilder());
            var reCAPTCHAService = new Mock <IReCAPTCHAService>().Object;

            this.appointmentService = new AppointmentService(db, reCAPTCHAService);
        }
Esempio n. 2
0
        public LecturesServiceGetVideoByLectureIdTests()
        {
            AutoMapperConfig.RegisterMappings(typeof(ErrorViewModel).GetTypeInfo().Assembly);
            this.db = new CoursesP2PDbContext(MemoryDatabase.OptionBuilder());

            this.lecturesService = new LecturesService(this.db);
        }
        public CoursesContollerCategoryTests()
        {
            this.db          = new CoursesP2PDbContext(MemoryDatabase.OptionBuilder());
            this.userManager = UserManagerMock.UserManagerMockTest();

            this.coursesService    = new CoursesService(db);
            this.coursesController = new CoursesController(coursesService, reviewService, userManager, null, null);
        }
        public CoursesServiceDetailsTests()
        {
            AutoMapperConfig.RegisterMappings(typeof(ErrorViewModel).GetTypeInfo().Assembly);

            this.db = new CoursesP2PDbContext(MemoryDatabase.OptionBuilder());

            this.coursesService = new CoursesService(this.db);
        }
Esempio n. 5
0
 public GetAppointmentTests()
 {
     this.db           = new KTasevaDbContext(MemoryDatabase.OptionBuilder());
     this.adminService = new AdminService(db);
 }
 public GetLectureBindingModelWithCourseIdTests()
 {
     this.db = new CoursesP2PDbContext(MemoryDatabase.OptionBuilder());
     this.lecturesService = new LecturesService(this.db);
 }
Esempio n. 7
0
 public AddTests()
 {
     this.db = new KTasevaDbContext(MemoryDatabase.OptionBuilder());
     this.procedureService = new ProcedureService(db);
 }
 public GetProceduresDropDownListTests()
 {
     AutoMapperConfig.RegisterMappings(typeof(ErrorViewModel).GetTypeInfo().Assembly);
     this.db = new KTasevaDbContext(MemoryDatabase.OptionBuilder());
     this.procedureService = new ProcedureService(db);
 }
 public StudentsServiceGetMyCoursesAsyncTests()
 {
     this.db = new CoursesP2PDbContext(MemoryDatabase.OptionBuilder());
     this.studentsService = new StudentsService(this.db);
 }
Esempio n. 10
0
 public GetByIdTests()
 {
     this.db = new KTasevaDbContext(MemoryDatabase.OptionBuilder());
     this.aboutMeService = new AboutMeService(db);
 }
        public LecturesServiceGetLecturesByCourseIdAsyncTests()
        {
            this.db = new CoursesP2PDbContext(MemoryDatabase.OptionBuilder());

            this.lecturesService = new LecturesService(this.db);
        }
Esempio n. 12
0
 public CoursesServiceCreateAsyncTests()
 {
     this.db             = new CoursesP2PDbContext(MemoryDatabase.OptionBuilder());
     this.coursesService = new CoursesService(this.db);
 }
 public InstructorsServiceEditCourseTests()
 {
     this.db = new CoursesP2PDbContext(MemoryDatabase.OptionBuilder());
     this.instructorsService = new InstructorsService(db, null);
 }
Esempio n. 14
0
 public InstructorsServiceGetCreatedCoursesTests()
 {
     AutoMapperConfig.RegisterMappings(typeof(ErrorViewModel).GetTypeInfo().Assembly);
     this.db = new CoursesP2PDbContext(MemoryDatabase.OptionBuilder());
     this.instructorsService = new InstructorsService(db, null);
 }
Esempio n. 15
0
 public AdminServiceGetCreatedCoursesByUserIdTests()
 {
     AutoMapperConfig.RegisterMappings(typeof(ErrorViewModel).GetTypeInfo().Assembly);
     this.db           = new CoursesP2PDbContext(MemoryDatabase.OptionBuilder());
     this.adminService = new AdminService(db);
 }
 public AdminServiceGetEnrolledCoursesByUserIdTests()
 {
     this.db           = new CoursesP2PDbContext(MemoryDatabase.OptionBuilder());
     this.adminService = new AdminService(db);
 }