Beispiel #1
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);
        }
Beispiel #2
0
 /// <summary>
 /// Erstellung des OSTC-Client-Nutzers (Absender) anhand des Antrags
 /// </summary>
 /// <param name="application">Antrag</param>
 public OstcSender(OstcAntrag application)
     : this(SenderId.FromBnr(application.Antragsteller.IK_BN), application.Antragsteller.Firma)
 {
 }