public void create_agile_run() { string packageId = GetSingleExecutionPackageId(); AgileRun run = client.CreateAgileRun(new CreateOrUpdateAgileRun { PackageId = packageId, Name = "My Agile Run" }); Assert.Equal("My Agile Run", run.Name); Assert.NotEqual(Guid.Empty.ToString(), run.Id); }
public void delete_agile_run_then_do_get_for_deleted_run_returns404() { string packageId = GetSingleExecutionPackageId(); AgileRun run = client.CreateAgileRun(new CreateOrUpdateAgileRun { PackageId = packageId, Name = "My Agile Run" }); client.DeleteAgileRun(run.Id); Assert.Throws <HttpRequestException>(() => client.GetAgileRun(run.Id)); }
public void update_agile_run() { string packageId = GetSingleExecutionPackageId(); AgileRun run = client.CreateAgileRun(new CreateOrUpdateAgileRun { PackageId = packageId, Name = "My Agile Run" }); AgileRun updatedRun = client.UpdateAgileRun(run.Id, new CreateOrUpdateAgileRun { Name = "Updated name" }); Assert.Equal("Updated name", updatedRun.Name); }