Exemplo n.º 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);
        }
Exemplo n.º 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]));
        }
Exemplo n.º 3
0
        public void CreateToDoListGroup()
        {
            string        name  = "Test Todo Group";
            ToDoListGroup group = RunTest(ToDoListGroup.Create(Api, Settings.TestProject, Settings.TestToDoList, name));

            Assert.AreEqual(name, group.name);
            group.SetStatus(Api, Status.trashed).Wait();
        }
Exemplo n.º 4
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);
        }
Exemplo n.º 5
0
        public void GetToDoListGroupToDos()
        {
            ToDoListGroup list = ToDoListGroup.GetToDoListGroup(Api, Settings.TestProject, Settings.TestToDoList).Result;

            RunTest(list.GetAllToDos(Api));
        }
Exemplo n.º 6
0
        public void GetToDoLisGroupSubscriptions()
        {
            ToDoListGroup list = ToDoListGroup.GetToDoListGroup(Api, Settings.TestProject, Settings.TestToDoListGroup).Result;

            RunTest(Subscription.GetSubscription(Api, list));
        }
Exemplo n.º 7
0
        public void RepositionToDoListGroup()
        {
            ToDoListGroup group = ToDoListGroup.GetToDoListGroup(Api, Settings.TestProject, Settings.TestToDoListGroup).Result;

            RunTest(group.Reposition(Api, 1));
        }
Exemplo n.º 8
0
        public void GetToDoListGroup()
        {
            ToDoListGroup group = RunTest(ToDoListGroup.GetToDoListGroup(Api, Settings.TestProject, Settings.TestToDoListGroup));

            Assert.AreEqual(Settings.TestToDoListGroup, group.id);
        }
Exemplo n.º 9
0
        public void GetAllToDoListGroups()
        {
            ApiList <ToDoListGroup> groups = RunTest(ToDoListGroup.GetAllToDoListGroups(Api, Settings.TestProject, Settings.TestToDoList));

            Assert.IsTrue(groups.All(Api).Any(g => g.id == Settings.TestToDoListGroup));
        }