Ejemplo n.º 1
0
 public async Task LoadCertificates(OstcCertificateListType certList, OstcCertificateType certType)
 {
     var restClient = new RestClient(Network.Base.Test);
     var ostcClient = new OstcClient(restClient, null);
     var certs = await ostcClient.DownloadCertificateListAsync(certList, certType);
     Assert.NotNull(certs);
     Assert.NotEqual(0, certs.Count);
 }
Ejemplo n.º 2
0
 public async Task LoadCrl(OstcCertificateType certType)
 {
     var restClient = new RestClient(Network.Base.Test);
     var ostcClient = new OstcClient(restClient, null);
     var crl = await ostcClient.DownloadCrlAsync(certType);
     Assert.NotNull(crl);
     var revokedCerts = crl.GetRevokedCertificates();
     Assert.NotEqual(0, revokedCerts.Count);
 }