public void IniTests() { // Runs before each test. dal = new EntityFrameworkDAL(new GestDepDbContext()); dal.RemoveAllData(); gestDepService = new GestDepService(dal); }
static void Main() { IGestDepService service = new GestDepService(new EntityFrameworkDAL(new GestDepDbContext())); Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.Run(new GestDepApp(service)); }
static void Main(string[] args) { try { IGestDepService service = new GestDepService(new EntityFrameworkDAL(new GestDepDbContext())); new Program(service); } catch (Exception e) { printError(e); } }
static void Main(string[] args) { try { IGestDepService service = new GestDepService(new EntityFrameworkDAL(new GestDepDbContext())); new Program(service); } catch (Exception e) { printError(e); Console.WriteLine("Press any key."); Console.ReadLine(); } }
static void Main(string[] args) { try { IGestDepService service = new GestDepService(new EntityFrameworkDAL(new GestDepDbContext())); new testEnrrol(service); } catch (Exception e) { printError(e); } Console.WriteLine("test"); Console.WriteLine("Press any key to continue..."); Console.ReadKey(); }