public void TestSearchAllResources() { // Run the sample code. string scope = String.Format("projects/{0}", _fixture.ProjectId); string query = String.Format("name:{0}", _fixture.DatasetId); var result = _sample.SearchAllResources(scope, query: query); Assert.Contains(_fixture.DatasetId, result.ToString()); }
public void TestSearchAllResources() { // Run the sample code. string scope = $"projects/{_fixture.ProjectId}"; string query = $"name:{_fixture.DatasetId}"; _fixture.Retry.Eventually(() => { var firstPage = _sample.SearchAllResources(scope, query: query); Assert.Contains(firstPage, resource => resource.DisplayName == _fixture.DatasetId); }); }