Exemple #1
0
        public void ServiceSitePath_WithConfigurationSection_ReturnsSetting()
        {
            var configFake = new KuduConfigurationSectionFake();

            configFake.SetFake("serviceSite", PathConfigurationElementFake.Fake("path", ".\\servicepath"));

            IKuduConfiguration config   = CreateConfiguration(configFake, new NameValueCollection());
            string             expected = Path.GetFullPath(".\\root_path\\servicepath");

            Assert.Equal(expected, config.ServiceSitePath);
        }
Exemple #2
0
        public void ApplicationsPath_WithConfigurationSection_ReturnsCombinedPath()
        {
            var configFake = new KuduConfigurationSectionFake();

            configFake.SetFake("applications", PathConfigurationElementFake.Fake("path", ".\\sitespath"));

            IKuduConfiguration config   = CreateConfiguration(configFake, new NameValueCollection());
            string             expected = Path.GetFullPath(".\\root_path\\sitespath");

            Assert.Equal(expected, config.ApplicationsPath);
        }