public void ModifyRequest() { var options = new ListDatasetsOptions { PageSize = 25 }; ListRequest request = new ListRequest(new BigqueryService(), "project"); options.ModifyRequest(request); Assert.Equal(25, request.MaxResults); }
public void ListDatasetsAsyncEquivalents() { var reference = new ProjectReference { ProjectId = ProjectId }; var options = new ListDatasetsOptions(); VerifyEquivalent(new UnimplementedPagedAsyncEnumerable <DatasetList, BigQueryDataset>(), client => client.ListDatasetsAsync(MatchesWhenSerialized(reference), options), client => client.ListDatasetsAsync(options), client => client.ListDatasetsAsync(ProjectId, options)); }
public void ModifyRequest() { var options = new ListDatasetsOptions { PageSize = 25, Filter = Filters.FromLabel("x", "y"), IncludeHidden = true }; ListRequest request = new ListRequest(new BigqueryService(), "project"); options.ModifyRequest(request); Assert.Equal(25, request.MaxResults); Assert.Equal("labels.x:y", request.Filter); Assert.True(request.All); }