示例#1
0
        public void TestInitialize()
        {
            SystemParameter reg = spr.GetByKey(Common.Dictionary.SystemProperties.SP_REGISTERED);

            if (reg != null)
            {
                spr.Remove(reg.Id);
            }
            Initialization.Initialize();
            Assert.IsFalse(SystemPropertyService.GetInstance().IsRegistered());

            Initialization.Register();

            Assert.IsTrue(SystemPropertyService.GetInstance().IsRegistered());
            Assert.AreEqual(SystemPropertyService.GetInstance().GetValue(Common.Dictionary.SystemProperties.SP_SCADA_ID), "123");
        }