示例#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;
        }