Esempio n. 1
0
 public static void TestPrep()
 {
     repo.Clear();
     application = Application.Launch(applicationPath);
     window      = application.GetWindow("MainWindow", InitializeOption.NoCache);
     context     = repo.Context();
 }
Esempio n. 2
0
        public TuneRepository()
        {
            _dbContext = new TuneContext();
            _dbContext.Tunes.Load();

            // see the database
            _dbContext.Tunes.Add(new Model.Tune("Little Maggie"));
            _dbContext.Tunes.Add(new Model.Tune("Foggy Mountain Breakdown"));
            _dbContext.SaveChanges();
        }