コード例 #1
0
ファイル: LegacyTest.cs プロジェクト: RobRobertsCE/MVVM
        public void TestDpInsert()
        {
            Legacy test = null;

            try
            {
                test = Legacy.NewObject();
            }
            catch { Assert.Inconclusive(); }
            test.Save();
            Assert.AreEqual("Inserted", ApplicationContext.GlobalContext["Legacy"]);
        }
コード例 #2
0
ファイル: LegacyTest.cs プロジェクト: gnilesh4/csla
        public void TestDpInsert()
        {
            Legacy test = null;

            try
            {
                test = NewLegacy();
            }
            catch { Assert.Inconclusive(); }
            test.Save();
            Assert.AreEqual("Inserted", TestResults.GetResult("Legacy"));
        }
コード例 #3
0
ファイル: LegacyTest.cs プロジェクト: gnilesh4/csla
        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
ファイル: LegacyTest.cs プロジェクト: gnilesh4/csla
        public void TestDpFetch()
        {
            Legacy test = GetLegacy(5);

            Assert.AreEqual("Fetched", TestResults.GetResult("Legacy"));
        }
コード例 #5
0
ファイル: LegacyTest.cs プロジェクト: gnilesh4/csla
        public void TestDpCreate()
        {
            Legacy test = NewLegacy();

            Assert.AreEqual("Created", TestResults.GetResult("Legacy"));
        }
コード例 #6
0
ファイル: LegacyTest.cs プロジェクト: RobRobertsCE/MVVM
 public void TestDpDelete()
 {
     Legacy.DeleteObject(5);
     Assert.AreEqual("Deleted", ApplicationContext.GlobalContext["Legacy"]);
 }
コード例 #7
0
ファイル: LegacyTest.cs プロジェクト: RobRobertsCE/MVVM
        public void TestDpFetch()
        {
            Legacy test = Legacy.GetObject(5);

            Assert.AreEqual("Fetched", ApplicationContext.GlobalContext["Legacy"]);
        }
コード例 #8
0
ファイル: LegacyTest.cs プロジェクト: RobRobertsCE/MVVM
        public void TestDpCreate()
        {
            Legacy test = Legacy.NewObject();

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