Пример #1
0
        public void ForceStaticInit()
        {
            EditableGetSetNFI root = new EditableGetSetNFI();

            root.Data    = "a";
            root.Base    = "b";
            root.TopBase = "c";
            Assert.AreEqual("a", root.Data);
            Assert.AreEqual("b", root.Base);
            Assert.AreEqual("c", root.TopBase);
        }
Пример #2
0
        public void ForceStaticInit()
        {
            IDataPortal <EditableGetSetNFI> dataPortal = _testDIContext.CreateDataPortal <EditableGetSetNFI>();

            EditableGetSetNFI root = EditableGetSetNFI.GetObject(dataPortal);

            root.Data    = "a";
            root.Base    = "b";
            root.TopBase = "c";
            Assert.AreEqual("a", root.Data);
            Assert.AreEqual("b", root.Base);
            Assert.AreEqual("c", root.TopBase);
        }