public void DeleteClientRestSharp() { var client = new TogglApiViaRestSharp("53e8569674f124ac8226e786168bbd76", "api_token"); var workspaceId = client.GetWorkspaces().Single().id; var clientToAdd = new ClientRestSharp() { name = "Test Client", wid = workspaceId.Value }; var addedClient = client.CreateClient(clientToAdd); Assert.AreEqual(1, client.GetClientsVisibleToUser().Count); client.DeleteClient(addedClient.id.Value); Assert.AreEqual(0, client.GetClientsVisibleToUser().Count); }
public void DeleteClientRestSharp() { var client = new TogglApiViaRestSharp("api_token", TogglApiTestKey.apikey); var workspaceId = client.GetWorkspaces().Single().id; var clientToAdd = new ClientRestSharp() { name = "Test Client", wid = workspaceId.Value }; var addedClient = client.CreateClient(clientToAdd); Assert.AreEqual(1, client.GetClientsVisibleToUser().Count); client.DeleteClient(addedClient.id.Value); Assert.AreEqual(0, client.GetClientsVisibleToUser().Count); }
public void DeleteClientRestSharp() { var client = new TogglApiViaRestSharp("6eae86fe55a39666057f045af4e3ca83", "api_token"); var workspaceId = client.GetWorkspaces().Single().id; var clientToAdd = new ClientRestSharp() { name = "Test Client", wid = workspaceId.Value }; var addedClient = client.CreateClient(clientToAdd); Assert.AreEqual(1, client.GetClientsVisibleToUser().Count); client.DeleteClient(addedClient.id.Value); Assert.AreEqual(0, client.GetClientsVisibleToUser().Count); }
public void DeleteClientRestSharp() { var client = new TogglApiViaRestSharp("53e8569674f124ac8226e786168bbd76", "api_token"); var workspaceId = client.GetWorkspaces().Single().id; var clientToAdd = new ClientRestSharp() { name = "Test Client", wid = workspaceId.Value }; var addedClient = client.CreateClient(clientToAdd); Assert.AreEqual(1, client.GetClientsVisibleToUser().Count); client.DeleteClient(addedClient.id.Value); Assert.AreEqual(0, client.GetClientsVisibleToUser().Count); }