public async Task GetAPIData() { HunterAPI hunterAPI = new HunterAPI(); var data = await hunterAPI.GetDeviceTasks(); Assert.IsNotNull(data); }
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); }