public void CreateProjectAndTrash() { if (!Settings.DestructiveTests) { return; } Project p = Project.CreateProject(Api, "Nikki Test 2").Result; RunTest(p.Trash(Api)); ApiList <Project> projects = RunTest(Project.GetAllProjects(Api, Status.trashed)); Assert.IsTrue(projects.All(Api).Any(t => t.id == p.id)); }
public void GetArchivedProjects() { ApiList <Project> projects = RunTest(Project.GetAllProjects(Api, Status.archived)); }
public void GetTrashedProjects() { ApiList <Project> projects = RunTest(Project.GetAllProjects(Api, Status.trashed)); }
public void GetAllProjects() { ApiList <Project> projects = RunTest(Project.GetAllProjects(Api)); Assert.IsTrue(projects.All(Api).Any(p => p.id == Settings.TestProject)); }