public void TestConnectWithoutAuth()
        {
            var connector = new BishopHttpCastleConnector(new PluginSettings {
                DiagnosticsUrl = new Uri("http://localhost:50890/test/"),
            });
            var configs = connector.ReadApplicationConfigs();

            Assert.NotEmpty(configs);
        }
        public void TestConnectWithAuth()
        {
            var settings = new PluginSettings {
                DiagnosticsUrl = new Uri("http://localhost:50890/test/"),
                UserName       = "******"
            };

            settings.SetPassword("Fiddler");

            var connector = new BishopHttpCastleConnector(settings);

            Assert.False(connector.AreSettingsValid());
            Assert.Throws <Exception>(() => connector.ReadApplicationConfigs());

            settings.SetPassword("Fiddler1");
            Assert.True(connector.AreSettingsValid());
            var configs = connector.ReadApplicationConfigs();

            Assert.NotEmpty(configs);
        }