public static void Setup() { var connectionString = ConfigurationManager.ConnectionStrings["DefaultConnection"].ConnectionString; using (var dbContext = new BugManagementContext(connectionString)) { Database.SetInitializer(new BugsDbInitializer()); dbContext.Database.Initialize(true); } }
public UnitOfWork(BugManagementContext context) { _context = context; }