コード例 #1
0
 public GetLectureBindingModelWithCourseIdTests()
 {
     this.db = new CoursesP2PDbContext(MemoryDatabase.OptionBuilder());
     this.lecturesService = new LecturesService(this.db);
 }
コード例 #2
0
 public AdminServiceGetUsersTests()
 {
     AutoMapperConfig.RegisterMappings(typeof(ErrorViewModel).GetTypeInfo().Assembly);
     this.db           = new CoursesP2PDbContext(MemoryDatabase.OptionBuilder());
     this.adminService = new AdminService(db);
 }
コード例 #3
0
 public FiveStarsViewComponent(CoursesP2PDbContext db)
 {
     this.db = db;
 }
コード例 #4
0
 public StudentsServiceGetMyCoursesAsyncTests()
 {
     this.db = new CoursesP2PDbContext(MemoryDatabase.OptionBuilder());
     this.studentsService = new StudentsService(this.db);
 }
コード例 #5
0
 public LecturesService(CoursesP2PDbContext db)
 {
     this.db = db;
 }
コード例 #6
0
 public CoursesServiceCreateAsyncTests()
 {
     this.db             = new CoursesP2PDbContext(MemoryDatabase.OptionBuilder());
     this.coursesService = new CoursesService(this.db);
 }
        public LecturesServiceGetLecturesByCourseIdAsyncTests()
        {
            this.db = new CoursesP2PDbContext(MemoryDatabase.OptionBuilder());

            this.lecturesService = new LecturesService(this.db);
        }
コード例 #8
0
 public InstructorsService(CoursesP2PDbContext db, IAzureStorageBlobService azureStorageBlobService)
 {
     this.db = db;
     this.azureStorageBlobService = azureStorageBlobService;
 }
コード例 #9
0
ファイル: AdminService.cs プロジェクト: KrastevIT/CoursesP2P
 public AdminService(CoursesP2PDbContext db)
 {
     this.db = db;
 }
コード例 #10
0
 public CoursesServiceGetCoursesByCategoryTests()
 {
     AutoMapperConfig.RegisterMappings(typeof(ErrorViewModel).GetTypeInfo().Assembly);
     this.db             = new CoursesP2PDbContext(MemoryDatabase.OptionBuilder());
     this.coursesService = new CoursesService(this.db);
 }
コード例 #11
0
 public InstructorsServiceEditCourseTests()
 {
     this.db = new CoursesP2PDbContext(MemoryDatabase.OptionBuilder());
     this.instructorsService = new InstructorsService(db, null);
 }
コード例 #12
0
 public InstructorsServiceGetCreatedCoursesTests()
 {
     AutoMapperConfig.RegisterMappings(typeof(ErrorViewModel).GetTypeInfo().Assembly);
     this.db = new CoursesP2PDbContext(MemoryDatabase.OptionBuilder());
     this.instructorsService = new InstructorsService(db, null);
 }
コード例 #13
0
 public StudentsService(CoursesP2PDbContext db)
 {
     this.db = db;
 }
コード例 #14
0
ファイル: ReviewService.cs プロジェクト: KrastevIT/CoursesP2P
 public ReviewService(CoursesP2PDbContext db)
 {
     this.db = db;
 }
コード例 #15
0
 public HomeAllInfoViewComponent(CoursesP2PDbContext db)
 {
     this.db = db;
 }
 public AdminServiceGetEnrolledCoursesByUserIdTests()
 {
     this.db           = new CoursesP2PDbContext(MemoryDatabase.OptionBuilder());
     this.adminService = new AdminService(db);
 }