Esempio n. 1
0
        public void T10_WebClientAuthConfig()
        {
            WebClientConfig cfg = WebClientConfig.CreateConfigFromFile("WebClientAuthConfig01.xml");

            Assert.IsNotNull(cfg, "cfg not null");
            Assert.AreEqual("http://changeme.swisscom.ch", cfg.ApId);
        }
Esempio n. 2
0
        public void T11_WebClientAuthConfig()
        {
            WebClientConfig cfg = WebClientConfig.CreateConfigFromFile("WebClientAuthConfig02.xml");

            Assert.IsNotNull(cfg, "cfg not null");
            Assert.AreEqual("http://changeme.swisscom.ch", cfg.ApId);
            Assert.AreEqual("<\"#>", cfg.DtbsPrefix, "DtbsPrefix");
            Assert.AreEqual(99, cfg.RequestTimeOutSeconds, "RequestTimeOutSeconds");
            Assert.AreEqual("http://changeme.swisscom.ch/services", cfg.ServiceUrlPrefix, "ServiceUrlPrefix");
            Assert.AreEqual(false, cfg.SrvSideValidation, "SrvSideValidation");
            Assert.AreEqual("ABcd12", cfg.SslCertThumbprint, "SslCertThumbprint");
            Assert.AreEqual(System.Security.Cryptography.X509Certificates.StoreLocation.CurrentUser, cfg.SslKeystore, "SslKeystore");
            Assert.AreEqual("CN=Some CA, C=CH", cfg.SslRootCaCertDN, "SslRootCaCertDN");
            Assert.AreEqual(true, cfg.EnableSubscriberInfo, "EnableSubscriberInfo");
            Assert.AreEqual("", cfg.SeedApTransId, "SeedApTransId");
            Assert.AreEqual(2, cfg.PollResponseDelaySeconds, "PollResponseDelaySeconds");
            Assert.AreEqual(1, cfg.PollResponseIntervalSeconds, "PollResponseIntervalSeconds");
            Assert.AreEqual(3, (int)cfg.UserSerialNumberPolicy, "UserSerialNumberPolicy");
        }