public CoursesServiceTest()
        {
            this.context = BaseServiceTests.CreateDbContext();
            var repository = new EfDeletableEntityRepository <Course>(this.context);

            this.service     = new CoursesService(repository);
            this.mockService = new Mock <ICoursesService>();
        }
Exemple #2
0
        public HomeworksServiceTests()
        {
            this.context = BaseServiceTests.CreateDbContext();
            var repository = new EfDeletableEntityRepository <Homework>(this.context);

            this.service = new HomeworksService(repository);
            this.mock    = new Mock <IHomeworksService>();
        }
Exemple #3
0
        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>();
        }