/// <summary>
        /// The update model in tool window.
        /// </summary>
        /// <param name="modelToUse">
        /// The model to use.
        /// </param>
        private void UpdateModelInToolWindow(ExtensionDataModel modelToUse)
        {
            // init basic model without project association
            ToolWindowPane window = this.FindToolWindow(typeof(IssuesToolWindow), 0, true) as IssuesToolWindow;

            if (null == window || modelToUse == null)
            {
                return;
            }

            var win = window as IssuesToolWindow;
            modelToUse.ExtensionDataModelUpdate(new SonarRestService(new JsonSonarConnector()), new VsPropertiesHelper(this.dte2), null);
            win.UpdateModel(modelToUse);
        }
 public void TestUpdateModelUpdateData()
 {
     var model = new ExtensionDataModel();
     model.ExtensionDataModelUpdate(this.service, this.vshelper, new Resource());
     Assert.AreEqual(0, model.Issues.Count);
     Assert.AreEqual(this.service, model.RestService);
     Assert.AreEqual(this.vshelper, model.Vsenvironmenthelper);
 }