示例#1
0
        public void TestCreateDatabase()
        {
            // Check to make sure the DB is created without an exception being thrown
            JustPressPlayDBEntities db = DatabaseHelper.CreateNewDatabase();

            db.Dispose();
        }
示例#2
0
 /// <summary>
 /// Handles disposing the entity framework DB context
 /// </summary>
 /// <param name="disposing">Are we disposing?</param>
 public void Dispose(bool disposing)
 {
     if (!_disposed && disposing)
     {
         _entityContext.Dispose();
     }
     _disposed = true;
 }
示例#3
0
 public void CleanupTest()
 {
     _db.Dispose();
 }