Exemplo n.º 1
0
        public void TestDpInsert()
        {
            Legacy test = null;

            try
            {
                test = Legacy.NewObject();
            }
            catch { Assert.Inconclusive(); }
            test.Save();
            Assert.AreEqual("Inserted", ApplicationContext.GlobalContext["Legacy"]);
        }
Exemplo n.º 2
0
        public void TestDpInsert()
        {
            Legacy test = null;

            try
            {
                test = NewLegacy();
            }
            catch { Assert.Inconclusive(); }
            test.Save();
            Assert.AreEqual("Inserted", TestResults.GetResult("Legacy"));
        }
Exemplo n.º 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"));
        }
Exemplo n.º 4
0
        public void TestDpFetch()
        {
            Legacy test = GetLegacy(5);

            Assert.AreEqual("Fetched", TestResults.GetResult("Legacy"));
        }
Exemplo n.º 5
0
        public void TestDpCreate()
        {
            Legacy test = NewLegacy();

            Assert.AreEqual("Created", TestResults.GetResult("Legacy"));
        }
Exemplo n.º 6
0
 public void TestDpDelete()
 {
     Legacy.DeleteObject(5);
     Assert.AreEqual("Deleted", ApplicationContext.GlobalContext["Legacy"]);
 }
Exemplo n.º 7
0
        public void TestDpFetch()
        {
            Legacy test = Legacy.GetObject(5);

            Assert.AreEqual("Fetched", ApplicationContext.GlobalContext["Legacy"]);
        }
Exemplo n.º 8
0
        public void TestDpCreate()
        {
            Legacy test = Legacy.NewObject();

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