public void ShouldReturnPackageIds() { CkanClient client = CkanApiHelper.GetCkanClient(); List <string> packageIds = client.GetPackageIds(); Console.WriteLine("Package ids found: {0}", packageIds.Count); Assert.NotEmpty(packageIds); }
public void ShouldReturnPackageByIdAndName() { CkanClient client = CkanApiHelper.GetCkanClient(); List <string> packageIds = client.GetPackageIds(); Package package = client.GetPackage(packageIds[0]); Assert.NotNull(package); package = client.GetPackage(package.Name); Assert.NotNull(package); }