public async Task UpdateRfiStatuses() { IPlanGridApi client = PlanGridClient.Create(); Page <RfiStatus> statuses = await client.GetRfiStatuses(TestData.Project1Uid); Assert.AreEqual("draft", statuses.Data[0].Label); await client.UpdateRfiStatus(TestData.Project1Uid, statuses.Data[0].Uid, new RfiStatusUpdate { Label = "draft2" }); statuses = await client.GetRfiStatuses(TestData.Project1Uid); Assert.AreEqual("draft2", statuses.Data[0].Label); await client.UpdateRfiStatus(TestData.Project1Uid, statuses.Data[0].Uid, new RfiStatusUpdate { Label = "draft" }); statuses = await client.GetRfiStatuses(TestData.Project1Uid); Assert.AreEqual("draft", statuses.Data[0].Label); }
public async Task GetRfiStatuses() { IPlanGridApi client = PlanGridClient.Create(); Page <RfiStatus> statuses = await client.GetRfiStatuses(TestData.Project1Uid); Assert.AreEqual(6, statuses.TotalCount); Assert.AreEqual("draft", statuses.Data[0].Label); Assert.AreEqual("#34b27d", statuses.Data[0].Color); }