コード例 #1
0
        public void GetParentTaskTabs()
        {
            var parentCtrl = new ParentTaskTabsController();
            var lst        = parentCtrl.GetParentTaskTabs();

            Assert.IsTrue(lst.Count() > 1, "This List contains more than 1 record");
        }
コード例 #2
0
        public void PostParentTaskTab()
        {
            var parentTab = new ParentTaskTab
            {
                Parent_Task = "Parent2"
            };

            var parentCtrl = new ParentTaskTabsController();

            parentCtrl.Request       = new HttpRequestMessage();
            parentCtrl.Configuration = new HttpConfiguration();
            var tsk = parentCtrl.PostParentTaskTab(parentTab);

            Assert.AreEqual(tsk.ReasonPhrase, "Created");
        }