コード例 #1
0
ファイル: Ostc1Tests.cs プロジェクト: dataline-gmbh/Itsg.Ostc
 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);
 }
コード例 #2
0
ファイル: Ostc1Tests.cs プロジェクト: dataline-gmbh/Itsg.Ostc
 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);
 }