public void Token() { var asana = new Asana.Asana(); asana.SetToken("YOUR_TOKEN"); var tasks = asana.Get("tasks"); Assert.IsTrue(tasks.ToString().Contains("error")); }
public void GetTasks() { var asana = new Asana.Asana(); asana.SetToken("YOUR_TOKEN"); asana.SetStringVar("{project_gid}", "BIG_NUMBER"); var tasks = asana.Get("projects/{project_gid}/tasks", true); Assert.IsTrue(tasks.Length > 0); }
public void GetProjects() { var asana = new Asana.Asana(false); asana.SetToken("YOUR_TOKEN"); asana.SetStringVar("{project_gid}", "BIG_NUMBER"); asana.SetBooleanVar("pretty", true); var tasks = asana.Get("projects"); Assert.IsTrue(tasks.Length > 0); }