Esempio n. 1
0
        public async Task GetAPIData()
        {
            HunterAPI hunterAPI = new HunterAPI();
            var       data      = await hunterAPI.GetDeviceTasks();

            Assert.IsNotNull(data);
        }
Esempio n. 2
0
        public async Task PostAPIData()
        {
            HunterAPI hunterAPI = new HunterAPI();
            var       data      = await hunterAPI.GetDeviceTasks();

            var task = data.Entity[0];

            TaskData tasksData = new TaskData();

            tasksData.TasksId = task.Id;
            tasksData.Data    = "{\"name\":\"OnePlus 39\"}";
            await hunterAPI.PostTasksData(tasksData);

            Assert.IsNotNull(data);
        }