public void TestInitialise() { _ClassFactorySnapshot = Factory.TakeSnapshot(); _PluginManager = TestUtilities.CreateMockSingleton<IPluginManager>(); _View = new Mock<IPluginsView>() { DefaultValue = DefaultValue.Mock }.SetupAllProperties(); _Presenter = Factory.Singleton.Resolve<IPluginsPresenter>(); }
/// <summary> /// Called when the control has been initialised but is not yet on display. /// </summary> /// <param name="e"></param> protected override void OnLoad(EventArgs e) { base.OnLoad(e); if (!DesignMode) { Localise.Form(this); _Presenter = Factory.Singleton.Resolve <IPluginsPresenter>(); _Presenter.Initialise(this); } }
public void TestInitialise() { _ClassFactorySnapshot = Factory.TakeSnapshot(); _PluginManager = TestUtilities.CreateMockSingleton <IPluginManager>(); _View = new Mock <IPluginsView>() { DefaultValue = DefaultValue.Mock }.SetupAllProperties(); _Presenter = Factory.Singleton.Resolve <IPluginsPresenter>(); }
/// <summary> /// Called when the control has been initialised but is not yet on display. /// </summary> /// <param name="e"></param> protected override void OnLoad(EventArgs e) { base.OnLoad(e); if(!DesignMode) { Localise.Form(this); _Presenter = Factory.Singleton.Resolve<IPluginsPresenter>(); _Presenter.Initialise(this); } }