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

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

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

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