public async Task GetLatestJobForSpecification(string[] jobTypes, string expectedJobsParameters) { string specificationId = NewRandomString(); IEnumerable <JobSummary> jobsummaries = NewEnumerable(NewJobSummary()); await AssertGetRequest($"jobs/latest?specificationId={specificationId}{expectedJobsParameters}", jobsummaries, () => _client.GetLatestJobsForSpecification(specificationId, jobTypes)); }
public async Task GetLatestJobForSpecification(string[] jobTypes, string expectedJobsParameters) { string specificationId = NewRandomString(); IDictionary <string, JobSummary> jobsummaries = new Dictionary <string, JobSummary> { { "", NewJobSummary() } }; await AssertGetRequest($"jobs/latest?specificationId={specificationId}{expectedJobsParameters}", jobsummaries, () => _client.GetLatestJobsForSpecification(specificationId, jobTypes)); }