Initialize() public method

public Initialize ( object sender, SectionInitializeEventArgs e ) : void
sender object
e SectionInitializeEventArgs
return void
 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 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");
 }