public static void VerifyAllTasksFinished(string jobId)
{
CloudMediaContext context2 = WindowsAzureMediaServicesTestConfiguration.CreateCloudMediaContext();
IJob job2 = context2.Jobs.Where(c => c.Id == jobId).Single();
Assert.AreEqual(JobState.Finished, job2.State);
foreach (ITask task in job2.Tasks)
{
Assert.AreEqual(JobState.Finished, task.State);
}
}