예제 #1
0
        public void GetToDoListGroupComments()
        {
            ToDoListGroup     group    = ToDoListGroup.GetToDoListGroup(Api, Settings.TestProject, Settings.TestToDoListGroup).Result;
            ApiList <Comment> comments = RunTest(group.GetComments(Api));

            Assert.AreEqual(group.comments_count, comments.TotalCount);
        }
예제 #2
0
        public void GetToDoSubscriptions()
        {
            ToDoListGroup  group = ToDoListGroup.GetToDoListGroup(Api, Settings.TestProject, Settings.TestToDoList).Result;
            ApiList <ToDo> list  = group.GetAllToDos(Api).Result;

            RunTest(Subscription.GetSubscription(Api, list.List[0]));
        }
예제 #3
0
        public void UpdateToDoListGroup()
        {
            string        name        = "Test Todo Group changed";
            string        description = "description changed";
            ToDoListGroup list        = ToDoListGroup.GetToDoListGroup(Api, Settings.TestProject, Settings.TestToDoListGroup).Result;
            ToDoListGroup changed     = RunTest(list.Update(Api, name, description));

            Assert.AreEqual(name, changed.name);
            Assert.AreEqual(description, changed.description);
            changed = RunTest(changed.Update(Api, list.name, list.description));
            Assert.AreEqual(list.name, changed.name);
            Assert.AreEqual(list.description, changed.description);
        }
예제 #4
0
        public void GetToDoListGroupToDos()
        {
            ToDoListGroup list = ToDoListGroup.GetToDoListGroup(Api, Settings.TestProject, Settings.TestToDoList).Result;

            RunTest(list.GetAllToDos(Api));
        }
예제 #5
0
        public void GetToDoLisGroupSubscriptions()
        {
            ToDoListGroup list = ToDoListGroup.GetToDoListGroup(Api, Settings.TestProject, Settings.TestToDoListGroup).Result;

            RunTest(Subscription.GetSubscription(Api, list));
        }
예제 #6
0
        public void RepositionToDoListGroup()
        {
            ToDoListGroup group = ToDoListGroup.GetToDoListGroup(Api, Settings.TestProject, Settings.TestToDoListGroup).Result;

            RunTest(group.Reposition(Api, 1));
        }
예제 #7
0
        public void GetToDoListGroup()
        {
            ToDoListGroup group = RunTest(ToDoListGroup.GetToDoListGroup(Api, Settings.TestProject, Settings.TestToDoListGroup));

            Assert.AreEqual(Settings.TestToDoListGroup, group.id);
        }