public CoursesServiceTest() { this.context = BaseServiceTests.CreateDbContext(); var repository = new EfDeletableEntityRepository <Course>(this.context); this.service = new CoursesService(repository); this.mockService = new Mock <ICoursesService>(); }
public HomeworksServiceTests() { this.context = BaseServiceTests.CreateDbContext(); var repository = new EfDeletableEntityRepository <Homework>(this.context); this.service = new HomeworksService(repository); this.mock = new Mock <IHomeworksService>(); }
public ExercisesServicesTests() { this.context = BaseServiceTests.CreateDbContext(); var repository = new EfDeletableEntityRepository <Exercise>(this.context); this.service = new ExercisesService(repository); this.mock = new Mock <IExercisesService>(); }
public EventsServicesTests() { this.context = BaseServiceTests.CreateDbContext(); var repository = new EfDeletableEntityRepository <Event>(this.context); var mapTableRepository = new EfDeletableEntityRepository <CourseEvent>(this.context); this.service = new EventsService(repository, mapTableRepository); this.mockService = new Mock <IEventsService>(); }