// Constructor for unit testing public MessagesService(IUisDataContext dbContext, MockedMessagesRepository mockedMessagesRepository) : base(dbContext) { this.MessagesRepository = mockedMessagesRepository; this.SeedStudents(); this.SeedTeachers(); }
// Constructor for unit testing public TeacherCoursesService(IUisDataContext dbContext, MockedCourseRepository mockedCourseRepository) : base(dbContext) { this.CoursesRepository = mockedCourseRepository; this.SeedCourses(); this.SeedTeachers(); }
public UsersService(IUisDataContext dbContext, MockedUsersRepository mockedUsersRepository) : base(dbContext) { this.ApplicationUserRepository = mockedUsersRepository; this.SeedStudents(); this.SeedTeachers(); }
protected Service(IUisDataContext dbContext) { this.dbContext = dbContext; this.ApplicationUserRepository = new DbRepository <ApplicationUser>(dbContext); this.CoursesRepository = new DbRepository <Course>(dbContext); this.StudentRepository = new DbRepository <Student>(dbContext); this.TeacherRepository = new DbRepository <Teacher>(dbContext); this.StudentsCoursesRepository = new DbRepository <StudentCourse>(dbContext); this.MessagesRepository = new DbRepository <Message>(dbContext); }
// Constructor for unit testing public StudentsCoursesService(IUisDataContext dbContext, MockedStudentsCoursesRepository mockedStudentsCoursesRepository, MockedCourseRepository mockedCourseRepository, MockedStudentsRepository mockedStudentsRepository) : base(dbContext) { this.StudentsCoursesRepository = mockedStudentsCoursesRepository; this.StudentRepository = mockedStudentsRepository; this.CoursesRepository = mockedCourseRepository; this.SeedCourses(); this.SeedStudents(); }
public MessagesService(IUisDataContext dbContext) : base(dbContext) { }
public AdminCoursesService(IUisDataContext dbContext) : base(dbContext) { }
public MockedMessagesRepository(IUisDataContext dbContext) : base(dbContext) { this.DbSet = new MockedDbSet <Message>(); }
public MockedStudentsCoursesRepository(IUisDataContext dbContext) : base(dbContext) { this.DbSet = new MockedDbSet <StudentCourse>(); }
public TeacherCoursesService(IUisDataContext dbContext) : base(dbContext) { }
public TeacherStudentsService(IUisDataContext dbContext, MockedStudentsCoursesRepository mockedStudentsCoursesRepository) : base(dbContext) { this.StudentsCoursesRepository = mockedStudentsCoursesRepository; this.SeedStudentsCourses(); }
public UsersService(IUisDataContext dbContext) : base(dbContext) { }
public StudentsCoursesService(IUisDataContext dbContext) : base(dbContext) { }
protected BaseTest() { this.dbContext = new MockedUisDbContext(); this.SeedData(); MapperConfig.ConfigureAutomapper(); }
public MockedCourseRepository(IUisDataContext dbContext) : base(dbContext) { this.DbSet = new MockedCoursesDbSet(); }
public MockedStudentsRepository(IUisDataContext dbContext) : base(dbContext) { this.DbSet = new MockedStudentsDbSet(); }
public TeacherStudentsService(IUisDataContext dbContext) : base(dbContext) { }
public MockedTeachersRepository(IUisDataContext dbContext) : base(dbContext) { this.DbSet = new MockedTeachersDbSet(); }
public DbRepository(IUisDataContext dbContext) { this.DbSet = dbContext.Set <T>(); }
public TeachersService(IUisDataContext dbContext, MockedTeachersRepository mockedTeachersRepository) : base(dbContext) { this.TeacherRepository = mockedTeachersRepository; this.SeedTeachers(); }