public void TestCreateDatabase() { // Check to make sure the DB is created without an exception being thrown JustPressPlayDBEntities db = DatabaseHelper.CreateNewDatabase(); db.Dispose(); }
/// <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; }
public void CleanupTest() { _db.Dispose(); }