public void ModifyRequest()
        {
            var options = new ListDatasetsOptions
            {
                PageSize = 25
            };
            ListRequest request = new ListRequest(new BigqueryService(), "project");

            options.ModifyRequest(request);
            Assert.Equal(25, request.MaxResults);
        }
Example #2
0
        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);
        }