public static LoadCertificate ( string thumbprint ) : |
||
thumbprint | string | |
Résultat |
public void RestrictedCollectionWorksWithCertificate() { var Search2 = new Search <TestDocument>(new Settings("authoring-hss.cp-access.com", "https://searchg2-restricted.crownpeak.net/", CertificateCreator.LoadCertificate("E63D2DCEB03E981968F373F5C419E043D9394AF9"))); var results = Search2.Execute("*:*"); Assert.AreEqual(results.TotalCount, 13, "Expected 13 results, found " + results.TotalCount); }
public void RestrictedSuggestWorksWithCertificate() { var Suggest2 = new Suggest(new Settings("authoring-hss.cp-access.com", "https://searchg2-restricted.crownpeak.net/", CertificateCreator.LoadCertificate("E63D2DCEB03E981968F373F5C419E043D9394AF9"))); var result = Suggest2.Execute("a"); Assert.AreEqual(1, result.Count, "Expected 4 results, found " + result.Count); Assert.AreEqual(4, result[0].Options.Length, "Expecting 4 options, got " + result[0].Options.Length); }