Beispiel #1
0
        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);
        }
Beispiel #2
0
        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();
        }
Beispiel #3
0
        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);
        }
Beispiel #4
0
        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));
        }
Beispiel #5
0
 public void Cleanup()
 {
     DoverSetup.shutdownDover();
 }