Beispiel #1
0
        internal virtual void ExecuteEvent(object EventKey, DBRampUpContext context)
        {
            DBRampUpEventHandler handler = _events[EventKey] as DBRampUpEventHandler;

            if (handler != null)
            {
                handler(context);
            }
        }
Beispiel #2
0
        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);
        }
Beispiel #3
0
 protected void EventHub_RestoreContent(DBRampUpContext context)
 {
     RestoreContent();
 }
Beispiel #4
0
 protected void EventHub_BuildCustomDatabase(DBRampUpContext context)
 {
 }
Beispiel #5
0
 protected void EventHub_UpdateSql(DBRampUpContext context)
 {
     UpdateSql();
 }
Beispiel #6
0
 protected void EventHub_CustomSiteSettings(DBRampUpContext context)
 {
     AddCustomSiteSettings();
 }
 protected void EventHub_BuildTestData(DBRampUpContext context)
 {
     BuildTestData();
 }
Beispiel #8
0
 protected void EventHub_BuildTestData(DBRampUpContext context)
 {
     BuildTestData();
 }
Beispiel #9
0
 public void Finalize(DBRampUpContext context)
 {
 }
Beispiel #10
0
 protected void EventHub_TearDown(DBRampUpContext context)
 {
     TearDownDatabase();
 }
Beispiel #11
0
 protected void EventHub_TearDown(DBRampUpContext context)
 {
     TearDownDatabase();
 }
Beispiel #12
0
 protected void EventHub_UpdateSql(DBRampUpContext context)
 {
     UpdateSql();
 }
Beispiel #13
0
 protected void EventHub_RestoreContent(DBRampUpContext context)
 {
     RestoreContent();
 }
Beispiel #14
0
 protected void EventHub_PreserveContent(DBRampUpContext context)
 {
     PreserveContent();
 }
Beispiel #15
0
 protected void EventHub_CustomSiteSettings(DBRampUpContext context)
 {
     AddCustomSiteSettings();
 }
Beispiel #16
0
 protected void EventHub_BuildDatabase(DBRampUpContext context)
 {
     BuildDatabase();
 }
Beispiel #17
0
        internal virtual void ExecuteEvent(object EventKey, DBRampUpContext context)
        {
            DBRampUpEventHandler handler = _events[EventKey] as DBRampUpEventHandler;

            if (handler != null)
            {
                handler(context);
            }
        }
Beispiel #18
0
 protected void EventHub_PreserveContent(DBRampUpContext context)
 {
     PreserveContent();
 }
Beispiel #19
0
 protected void EventHub_BuildCustomDatabase(DBRampUpContext context)
 {
 }
Beispiel #20
0
        public void Initialize(DBRampUpContext context)
        {
            context.EventHub.BuildTestData += new DBRampUpEventHandler(EventHub_BuildTestData);

            DBRampUpProvider.Instance().SqlPath = "database\\sql";
        }
Beispiel #21
0
 protected void EventHub_BuildDatabase(DBRampUpContext context)
 {
     BuildDatabase();
 }
Beispiel #22
0
 void EventHub_BuildTestData(DBRampUpContext context)
 {
 }
Beispiel #23
0
        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;
        }