Пример #1
0
        public async Task GetJobAsync()
        {
            var projectId = "project";
            var jobId     = "job";
            var service   = new FakeBigqueryService();
            var client    = new BigQueryClientImpl(projectId, service);
            var reference = client.GetJobReference(projectId, jobId);

            service.ExpectRequest(
                service.Jobs.Get(projectId, jobId),
                new Job {
                JobReference = reference
            });
            var result = await client.GetJobAsync(reference);

            Assert.Equal(projectId, result.Reference.ProjectId);
            Assert.Equal(jobId, result.Reference.JobId);
        }