public void CertificateStores_WithMultipleElements_ConstainsSingleItem()
        {
            var configFake = new KuduConfigurationSectionFake();
            var storesFake = new CertificateStoresConfigurationElementCollectionFake();
            storesFake.Add(new CertificateStoreConfigurationElementFake()
                .SetFake("name", StoreName.Root));
            storesFake.Add(new CertificateStoreConfigurationElementFake()
                .SetFake("name", StoreName.My));

            configFake.SetFake("certificateStores", storesFake);

            IKuduConfiguration config = CreateConfiguration(configFake, new NameValueCollection());
            Assert.Equal(2, config.CertificateStores.Count());
            Assert.Equal(StoreName.Root, config.CertificateStores.ElementAt(0).Name);
            Assert.Equal(StoreName.My, config.CertificateStores.ElementAt(1).Name);
        }
        public void CertificateStores_WithEmptyConfigurationSection_DefaultsToSingleStoreMy()
        {
            var configFake = new KuduConfigurationSectionFake();
            var storesFake = new CertificateStoresConfigurationElementCollectionFake();
            configFake.SetFake("certificateStores", storesFake);

            IKuduConfiguration config = CreateConfiguration(configFake, new NameValueCollection());
            Assert.Equal(StoreName.My, config.CertificateStores.Single().Name);
        }