public void ConnectionSessionLogPresenter_Initialise_Sets_Initial_Values_For_View_Properties()
        {
            _Presenter.Initialise(_View.Object);

            Assert.AreEqual(DateTime.Today, _View.Object.StartDate);
            Assert.AreEqual(DateTime.Today, _View.Object.EndDate);
        }
Пример #2
0
        /// <summary>
        /// Called after the form has loaded but is not yet on screen.
        /// </summary>
        /// <param name="e"></param>
        protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);

            if (!DesignMode)
            {
                Localise.Form(this);

                _Presenter = Factory.Singleton.Resolve <IConnectionSessionLogPresenter>();
                _Presenter.Initialise(this);

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

                OnShowSessionsClicked(EventArgs.Empty);
            }
        }
        /// <summary>
        /// Called after the form has loaded but is not yet on screen.
        /// </summary>
        /// <param name="e"></param>
        protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);

            if(!DesignMode) {
                Localise.Form(this);

                _Presenter = Factory.Singleton.Resolve<IConnectionSessionLogPresenter>();
                _Presenter.Initialise(this);

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

                OnShowSessionsClicked(EventArgs.Empty);
            }
        }