public void Constructor_ViewInput_AttachesEvents()
        {
            _homeView.Initialize += null;
            LastCall.IgnoreArguments();

            _mockRepository.ReplayAll();

            var sut = new HomePresenter(_homeView);
        }
        public void InitializeEvent_Raised_SetsTitleToWelcome()
        {
            _homeView.Initialize += null;
            var initializeEvent = LastCall.IgnoreArguments().GetEventRaiser();
            _homeView.PageTitle = string.Format("Welcome to M-V-P site. Logged in at {0}", DateTime.Now.ToString());

            _mockRepository.ReplayAll();

            var sut = new HomePresenter(_homeView);
            initializeEvent.Raise(_homeView, EventArgs.Empty);
        }
 protected override void OnInit(EventArgs e)
 {
     _homePresenter = new HomePresenter(this);
 }