public CourseRepository() { //TODO: Antipattern var factory = new L2lDbContextFactory(); db = factory.CreateDbContext(new string[] {}); }
public CourseRepository(L2lDbContext db) { this.db = db ?? throw new ArgumentNullException(nameof(db)); }
public CourseRepository() { var factory = new L2lDbContextFactory(); db = factory.CreateDbContext(new string[] {}); }