Пример #1
0
        public void TestDpInsert()
        {
            Legacy test = null;

            try
            {
                test = Legacy.NewObject();
            }
            catch { Assert.Inconclusive(); }
            test.Save();
            Assert.AreEqual("Inserted", ApplicationContext.GlobalContext["Legacy"]);
        }
Пример #2
0
        public void TestDpInsert()
        {
            Legacy test = null;

            try
            {
                test = NewLegacy();
            }
            catch { Assert.Inconclusive(); }
            test.Save();
            Assert.AreEqual("Inserted", TestResults.GetResult("Legacy"));
        }
Пример #3
0
        public void TestDpDeleteSelf()
        {
            Legacy test = null;

            try
            {
                test = NewLegacy();
                test = test.Save();
                test.Delete();
            }
            catch { Assert.Inconclusive(); }
            test.Save();
            Assert.AreEqual("SelfDeleted", TestResults.GetResult("Legacy"));
        }
Пример #4
0
        public void TestDpFetch()
        {
            Legacy test = GetLegacy(5);

            Assert.AreEqual("Fetched", TestResults.GetResult("Legacy"));
        }
Пример #5
0
        public void TestDpCreate()
        {
            Legacy test = NewLegacy();

            Assert.AreEqual("Created", TestResults.GetResult("Legacy"));
        }
Пример #6
0
 public void TestDpDelete()
 {
     Legacy.DeleteObject(5);
     Assert.AreEqual("Deleted", ApplicationContext.GlobalContext["Legacy"]);
 }
Пример #7
0
        public void TestDpFetch()
        {
            Legacy test = Legacy.GetObject(5);

            Assert.AreEqual("Fetched", ApplicationContext.GlobalContext["Legacy"]);
        }
Пример #8
0
        public void TestDpCreate()
        {
            Legacy test = Legacy.NewObject();

            Assert.AreEqual("Created", ApplicationContext.GlobalContext["Legacy"]);
        }