/// <summary>
        /// Initializes a new instance of the MainViewModel class.
        /// </summary>
        public MainViewModel()
        {
            var address = PromptUserData.Prompt("Server Address", "Insert Server Address", "http://sonar");

            if (address == null)
            {
                throw new Exception("Server Address must not be empty");
            }

            using (var dialog = new Security.Windows.Forms.UserCredentialsDialog())
            {
                if (dialog.ShowDialog() == DialogResult.OK)
                {
                    if (dialog.SaveChecked)
                    {
                        dialog.ConfirmCredentials(true);
                    }

                    AuthtenticationHelper.EstablishAConnection(new SonarRestService(new JsonSonarConnector()), address, dialog.User, dialog.PasswordToString());
                }
                else
                {
                    throw new Exception("user name and pass should be set");
                }
            }


            this.SonarQubeView = new SonarQubeViewModel("standalone", null);
            this.SonarQubeView.InitModelFromPackageInitialization(new VsEnvironmentHelper(), new VsStatusBarDummy(), new ServiceProviderDummy(), Environment.CurrentDirectory);
        }
        /// <summary>
        /// Initializes a new instance of the MainViewModel class.
        /// </summary>
        public MainViewModel()
        {
            var address = PromptUserData.Prompt("Server Address", "Insert Server Address", "http://sonar");
            if (address == null)
            {
                throw new Exception("Server Address must not be empty");
            }

            using (var dialog = new Security.Windows.Forms.UserCredentialsDialog())
            {
                if (dialog.ShowDialog() == DialogResult.OK)
                {
                    if (dialog.SaveChecked)
                    {
                        dialog.ConfirmCredentials(true);
                    }

                    AuthtenticationHelper.EstablishAConnection(new SonarRestService(new JsonSonarConnector()), address, dialog.User, dialog.PasswordToString());
                }
                else
                {
                    throw new Exception("user name and pass should be set");
                }
            }

            this.SonarQubeView = new SonarQubeViewModel("standalone", null);
            this.SonarQubeView.InitModelFromPackageInitialization(new VsEnvironmentHelper(), new VsStatusBarDummy(), new ServiceProviderDummy(), Environment.CurrentDirectory);
        }