Ejemplo n.º 1
0
        public void LoadEnterpriseConfigurationTest_NoParameter()
        {
            EnterpriseConfigHelper.EnterpriseConfig = null; //force a re-read.
            EnterpriseConfiguration actual;

            actual = EnterpriseConfigHelper.LoadEnterpriseConfiguration();
            Assert.AreEqual(1, actual.TableWatch.Length);
            Assert.AreEqual(2, actual.TableWatch[0].Notify.Length);
            Assert.AreEqual(2, actual.TableWatch[0].Table.Length);
        }
Ejemplo n.º 2
0
        public void LoadEnterpriseConfigurationTest_WithConfigPath()
        {
            EnterpriseConfigHelper.EnterpriseConfig = null; //force a re-read.
            string configPath = System.Configuration.ConfigurationManager.AppSettings["Enterprise.ConfigFileLocation"];
            EnterpriseConfiguration actual;

            actual = EnterpriseConfigHelper.LoadEnterpriseConfiguration(configPath);
            Assert.AreEqual(1, actual.TableWatch.Length);
            Assert.AreEqual(2, actual.TableWatch[0].Notify.Length);
            Assert.AreEqual(2, actual.TableWatch[0].Table.Length);
        }