Exemplo n.º 1
0
        public void SetUp()
        {
            var context = new AdycDbContext();

            courseService     = new CourseService(new CourseRepository(context));
            courseTypeService = new CourseTypeService(new CourseTypeRepository(context));
            ((CourseService)courseService).CourseTypeService = courseTypeService;

            internalCT = courseTypeService.Get(internalCTId);
            externalCT = courseTypeService.Get(externalCTId);
        }
        public void SetUp()
        {
            var context = new AdycDbContext();

            courseRepository     = new CourseRepository(context);
            courseTypeRepository = new CourseTypeRepository(context);

            internalCT = courseTypeRepository.Get(11);
            externalCT = courseTypeRepository.Get(12);

            //courseRepository.AddRange(TestData.Courses);
        }