internal virtual void ExecuteEvent(object EventKey, DBRampUpContext context) { DBRampUpEventHandler handler = _events[EventKey] as DBRampUpEventHandler; if (handler != null) { handler(context); } }
internal List <IDBRampUpModule> LoadModules(DBRampUpContext context) { List <IDBRampUpModule> modules = new List <IDBRampUpModule>(); try { DBRampUpModuleCollectionConfiguration moduleConfigs = DBRampUpConfiguration.Instance.Modules; foreach (DBRampUpModuleConfiguration mod in moduleConfigs) { modules.Add(LoadModule(mod)); } } catch (Exception ex) { WriteLine(String.Format("An exception of type {0} occurred while loading DBRampUpModules. The exception message is: {1}", ex.GetType().Name, ex.Message)); } return(modules); }
protected void EventHub_RestoreContent(DBRampUpContext context) { RestoreContent(); }
protected void EventHub_BuildCustomDatabase(DBRampUpContext context) { }
protected void EventHub_UpdateSql(DBRampUpContext context) { UpdateSql(); }
protected void EventHub_CustomSiteSettings(DBRampUpContext context) { AddCustomSiteSettings(); }
protected void EventHub_BuildTestData(DBRampUpContext context) { BuildTestData(); }
public void Finalize(DBRampUpContext context) { }
protected void EventHub_TearDown(DBRampUpContext context) { TearDownDatabase(); }
protected void EventHub_PreserveContent(DBRampUpContext context) { PreserveContent(); }
protected void EventHub_BuildDatabase(DBRampUpContext context) { BuildDatabase(); }
public void Initialize(DBRampUpContext context) { context.EventHub.BuildTestData += new DBRampUpEventHandler(EventHub_BuildTestData); DBRampUpProvider.Instance().SqlPath = "database\\sql"; }
void EventHub_BuildTestData(DBRampUpContext context) { }
internal List<IDBRampUpModule> LoadModules(DBRampUpContext context) { List<IDBRampUpModule> modules = new List<IDBRampUpModule>(); try { DBRampUpModuleCollectionConfiguration moduleConfigs = DBRampUpConfiguration.Instance.Modules; foreach (DBRampUpModuleConfiguration mod in moduleConfigs) { modules.Add(LoadModule(mod)); } } catch (Exception ex) { WriteLine(String.Format("An exception of type {0} occurred while loading DBRampUpModules. The exception message is: {1}", ex.GetType().Name, ex.Message)); } return modules; }