public GetFreeAppointmentByDateTests() { this.db = new KTasevaDbContext(MemoryDatabase.OptionBuilder()); var reCAPTCHAService = new Mock <IReCAPTCHAService>().Object; this.appointmentService = new AppointmentService(db, reCAPTCHAService); }
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); }
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); }
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); }
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); }
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); }
public InstructorsServiceGetCreatedCoursesTests() { AutoMapperConfig.RegisterMappings(typeof(ErrorViewModel).GetTypeInfo().Assembly); this.db = new CoursesP2PDbContext(MemoryDatabase.OptionBuilder()); this.instructorsService = new InstructorsService(db, null); }
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); }