public CourseRepositoryTests() { var factory = new L2lDbContextFactory(); var context = factory.CreateDbContext(new string[] {}); context.Database.EnsureCreated(); }
public CourseRepository() { //TODO: Antipattern var factory = new L2lDbContextFactory(); db = factory.CreateDbContext(new string[] {}); }
public L2lDbContext GetNewL2lDbContext() { return(factory.CreateDbContext(new string[] {})); }
public CourseRepository() { var factory = new L2lDbContextFactory(); db = factory.CreateDbContext(new string[] {}); }