Exemple #1
0
        public CourseRepositoryTests()
        {
            var factory = new L2lDbContextFactory();
            var context = factory.CreateDbContext(new string[] {});

            context.Database.EnsureCreated();
        }
Exemple #2
0
        public CourseRepository()
        {
            //TODO: Antipattern
            var factory = new L2lDbContextFactory();

            db = factory.CreateDbContext(new string[] {});
        }
Exemple #3
0
 public L2lDbContext GetNewL2lDbContext()
 {
     return(factory.CreateDbContext(new string[] {}));
 }
Exemple #4
0
        public CourseRepository()
        {
            var factory = new L2lDbContextFactory();

            db = factory.CreateDbContext(new string[] {});
        }