Exemple #1
0
        public DialogResult ShowView()
        {
            _Presenter = Factory.Resolve <IStatisticsPresenter>();
            _Presenter.Initialise(this);

            return(DialogResult.OK);
        }
Exemple #2
0
        /// <summary>
        /// Called after the form has been initialised but before it is shown to the user.
        /// </summary>
        /// <param name="e"></param>
        protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);

            Localise.Form(this);

            _OnlineHelp = new OnlineHelpHelper(this, OnlineHelpAddress.WinFormsStatisticsDialog);

            _Presenter = Factory.Singleton.Resolve <IStatisticsPresenter>();
            _Presenter.Initialise(this);
        }
 public void StatisticsPresenter_Initialise_Calls_UpdateCounters_On_View()
 {
     _Presenter.Initialise(_View.Object);
     _View.Verify(r => r.UpdateCounters(), Times.Once());
 }