Beispiel #1
0
        public async Task LoadCertificates(OstcCertificateListType certList, OstcCertificateType certType)
        {
            var ostcClient = new OstcClient(Network.Base.Test);
            var certs      = await ostcClient.DownloadCertificateListAsync(certList, certType);

            Assert.NotNull(certs);
            Assert.NotEqual(0, certs.Count);
        }
Beispiel #2
0
        public async Task LoadCertificatesAsync(OstcListeListe certList)
        {
            var sender = new OstcSender(SenderId.FromBnr("99300006"), "Test");
            var cred   = new NetworkCredential("dataline", "a5pY_4cm");
            var client = new OstcClient(sender, Network.Base.Test, cred, new OstcClientInfo("Dataline", "Dataline Office", 21412))
            {
                OstcExtraValidatorFactory = OstcExtraValidator.Factory
            };
            var certs = await client.DownloadCertificateListAsync(certList);

            Assert.NotNull(certs);
            Assert.NotEqual(0, certs.Count);
        }