public void testInstanceLegacy()
        {
            Dictionary <string, string> _config = new Dictionary <string, string>
            {
                { "proxyHost", "websenseproxy" },
                { "proxyPort", "8080" },
                { "multiSite", "false" },
                { "printxml", "false" },
                { "printMultiSiteDebug", "true" },
                { "merchantId", "101" },
                { "username", "DOTNET" },
                { "password", "TESTCASE" },
                { "url", legacyUrl }
            };

            CommManager.reset();
            CommManager cmg = CommManager.instance(_config);

            Assert.IsNotNull(cmg);
            Assert.IsFalse(cmg.getMultiSite());
            Assert.AreEqual(legacyUrl, cmg.getLegacyUrl());

            Dictionary <string, string> _config2 = new Dictionary <string, string>
            {
                { "proxyHost", "websenseproxy" },
                { "proxyPort", "8080" },
                { "multiSite", "false" },
                { "printxml", "false" },
                { "printMultiSiteDebug", "true" },
                { "merchantId", "101" },
                { "username", "DOTNET" },
                { "password", "TESTCASE" },
                { "url", "https://nowhere.com" }
            };
            CommManager cmg2 = CommManager.instance(_config2);

            Assert.AreEqual(legacyUrl, cmg2.getLegacyUrl());  // should be same manager as previous
        }
        public void testReportResult_NotMultiSite()
        {
            Dictionary <string, string> _config = new Dictionary <string, string>
            {
                { "proxyHost", "websenseproxy" },
                { "proxyPort", "8080" },
                { "multiSite", "false" },
                { "printxml", "false" },
                { "printMultiSiteDebug", "true" },
                { "merchantId", "101" },
                { "username", "DOTNET" },
                { "password", "TESTCASE" },
                { "url", legacyUrl }
            };

            CommManager.reset();
            CommManager cmg = CommManager.instance(_config);

            Assert.IsNotNull(cmg);
            Assert.IsFalse(cmg.getMultiSite());
            Assert.AreEqual(legacyUrl, cmg.getLegacyUrl());
            cmg.reportResult(new RequestTarget("", 1), 1, 0);
        }