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); }
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])); }
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); }
public void GetToDoListGroupToDos() { ToDoListGroup list = ToDoListGroup.GetToDoListGroup(Api, Settings.TestProject, Settings.TestToDoList).Result; RunTest(list.GetAllToDos(Api)); }
public void GetToDoLisGroupSubscriptions() { ToDoListGroup list = ToDoListGroup.GetToDoListGroup(Api, Settings.TestProject, Settings.TestToDoListGroup).Result; RunTest(Subscription.GetSubscription(Api, list)); }
public void RepositionToDoListGroup() { ToDoListGroup group = ToDoListGroup.GetToDoListGroup(Api, Settings.TestProject, Settings.TestToDoListGroup).Result; RunTest(group.Reposition(Api, 1)); }
public void GetToDoListGroup() { ToDoListGroup group = RunTest(ToDoListGroup.GetToDoListGroup(Api, Settings.TestProject, Settings.TestToDoListGroup)); Assert.AreEqual(Settings.TestToDoListGroup, group.id); }