Beispiel #1
0
        public void Token()
        {
            var asana = new Asana.Asana();

            asana.SetToken("YOUR_TOKEN");
            var tasks = asana.Get("tasks");

            Assert.IsTrue(tasks.ToString().Contains("error"));
        }
Beispiel #2
0
        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);
        }
Beispiel #3
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);
        }