Inheritance: TeamExplorerSectionBase, ISectionController
 private SectionController CreateTestSubject(IWebBrowser webBrowser = null)
 {
     var controller = new SectionController(host, webBrowser ?? new ConfigurableWebBrowser());
     controller.Initialize(null, new Microsoft.TeamFoundation.Controls.SectionInitializeEventArgs(new ServiceContainer(), null));
     return controller;
 }
        private void AssertCommandsInSync(SectionController section)
        {
            ConnectSectionViewModel viewModel = (ConnectSectionViewModel)section.ViewModel;

            Assert.AreSame(section.ConnectCommand, viewModel.ConnectCommand, "ConnectCommand is not initialized");
            Assert.AreSame(section.BindCommand, viewModel.BindCommand, "BindCommand is not initialized");
            Assert.AreSame(section.BrowseToUrlCommand, viewModel.BrowseToUrlCommand, "BrowseToUrlCommand is not initialized");
        }
 private static void ReInitialize(SectionController controller, IHost host)
 {
     host.ClearActiveSection();
     host.VisualStateManager.ManagedState.ConnectedServers.Clear();
     controller.Initialize(null, new Microsoft.TeamFoundation.Controls.SectionInitializeEventArgs(new ServiceContainer(), null));
     bool refreshCalled = false;
     controller.RefreshCommand = new RelayCommand(() => refreshCalled = true);
     controller.Refresh();
     Assert.IsTrue(refreshCalled, "Refresh command execution was expected");
 }