public void Init()
 {
     _universitySqlLiteDbFactory = new UniversitySqlLiteDbFactory();
     _universityDbContext        = _universitySqlLiteDbFactory.GetDbContext();
     _courseOfferingsServerice   = new CourseOfferingsServerice(
         new CourseOfferingsRepository(_universitySqlLiteDbFactory));
 }
Exemple #2
0
 public void Init()
 {
     _universitySqlLiteDbFactory = new UniversitySqlLiteDbFactory();
     _universityDbContext        = _universitySqlLiteDbFactory.GetDbContext();
     _studentsService            = new StudentsService(
         new StudentsRepository(_universitySqlLiteDbFactory));
 }
Exemple #3
0
        public void Init()
        {
            var universityDbFactory = new UniversitySqlLiteDbFactory();

            _universityDbContext = universityDbFactory.GetDbContext();
            _studentRepository   = new StudentsRepository(universityDbFactory);
        }