public void InstallAndRestartDover() { BusinessOneDAO b1dao = app.Resolve <BusinessOneDAO>(); Assert.AreEqual(b1dao.ExecuteSqlForObject <int>("select count(*) from \"@DOVER_MODULES\""), 11); Assert.IsTrue(b1dao.ExecuteSqlForObject <int>("select count(*) from \"@DOVER_MODULES_BIN\"") > 0); Assert.IsTrue(b1dao.ExecuteSqlForObject <int>("select count(*) from \"@DOVER_MODULES_DEP\"") > 0); Assert.AreEqual(b1dao.ExecuteSqlForObject <int>("select count(*) from \"@DOVER_MODULES_USER\""), 0); Assert.AreEqual(b1dao.ExecuteSqlForObject <int>("select count(*) from \"@DOVER_LOGS\""), 0); Assert.AreEqual(b1dao.ExecuteSqlForObject <int>("select count(*) from \"@DOVER_LICENSE\""), 0); Assert.AreEqual(b1dao.ExecuteSqlForObject <int>("select count(*) from \"@DOVER_LICENSE_BIN\""), 0); DoverSetup.shutdownDover(); DoverSetup.bootDover(app); b1Company = app.Resolve <SAPbobsCOM.Company>(); b1App = app.Resolve <SAPbouiCOM.Application>(); b1dao = app.Resolve <BusinessOneDAO>(); Assert.AreEqual(b1dao.ExecuteSqlForObject <int>("select count(*) from \"@DOVER_MODULES\""), 11); Assert.IsTrue(b1dao.ExecuteSqlForObject <int>("select count(*) from \"@DOVER_MODULES_BIN\"") > 0); Assert.IsTrue(b1dao.ExecuteSqlForObject <int>("select count(*) from \"@DOVER_MODULES_DEP\"") > 0); Assert.AreEqual(b1dao.ExecuteSqlForObject <int>("select count(*) from \"@DOVER_MODULES_USER\""), 0); Assert.AreEqual(b1dao.ExecuteSqlForObject <int>("select count(*) from \"@DOVER_LOGS\""), 0); Assert.AreEqual(b1dao.ExecuteSqlForObject <int>("select count(*) from \"@DOVER_LICENSE\""), 0); Assert.AreEqual(b1dao.ExecuteSqlForObject <int>("select count(*) from \"@DOVER_LICENSE_BIN\""), 0); }
public void Initialize() { app = DoverSetup.CleanDover(false); DoverSetup.bootDover(app); b1Company = app.Resolve <SAPbobsCOM.Company>(); b1App = app.Resolve <SAPbouiCOM.Application>(); CleanAddins(); }
public void InstallI18NAddinAndRestart() { InstallI18NAddin(); DoverSetup.shutdownDover(); DoverSetup.bootDover(app); b1App = app.Resolve <SAPbouiCOM.Application>(); Form adminForm = UIHelper.GetFormAfterAction("dover.formAdmin", b1App, () => b1App.Menus.Item("doverAdmin").Activate()); string dtxml = UIHelper.ExportDTXML(adminForm, "modDT"); XDocument xdoc = XDocument.Parse(dtxml); CheckAddinStatus("DOVER_NL", "I18NExample", "Y", "R", xdoc); AssertNoFrameworkError(); }
public void InstallI18NAddinWithLicenseControlAndRestart() { InstallI18NAddinWithLicenseControl(); DoverSetup.shutdownDover(); DoverSetup.bootDover(app); b1Company = app.Resolve <SAPbobsCOM.Company>(); b1App = app.Resolve <SAPbouiCOM.Application>(); Form adminForm = UIHelper.GetFormAfterAction("dover.formAdmin", b1App, () => b1App.Menus.Item("doverAdmin").Activate()); string dtxml = UIHelper.ExportDTXML(adminForm, "modDT"); XDocument xdoc = XDocument.Parse(dtxml); CheckAddinStatus("DOVER_WL", "I18NExample", "N", "S", xdoc); }
public void InstallLicenseAndI18NAddinAndRestart() { InstallLicense(); InstallI18NAddinWithLicenseControl(); DoverSetup.shutdownDover(); DoverSetup.bootDover(app); b1Company = app.Resolve <SAPbobsCOM.Company>(); b1App = app.Resolve <SAPbouiCOM.Application>(); BusinessOneDAO b1DAO = app.Resolve <BusinessOneDAO>(); Form adminForm = UIHelper.GetFormAfterAction("dover.formAdmin", b1App, () => b1App.Menus.Item("doverAdmin").Activate()); string dtxml = UIHelper.ExportDTXML(adminForm, "modDT"); XDocument xdoc = XDocument.Parse(dtxml); CheckAddinStatus("DOVER_WL", "I18NExample", "Y", "R", xdoc); AssertNoFrameworkError(); Assert.AreEqual(b1DAO.ExecuteSqlForObject <DateTime>( string.Format("select U_DueDate from \"@DOVER_MODULES\" WHERE \"U_Name\" = '{0}' and \"U_Namespace\" = '{1}'", "I18NExample", "DOVER_WL")), DateTime.Today.AddDays(3)); }