Esempio n. 1
0
        private void FormRegistrationLoad(object sender, EventArgs e)
        {
            this.presenter = new RegistrationPresenter(this);

            if (Initialize != null)
                Initialize(this, EventArgs.Empty);
        }
        public void ViewRaisesTheInitializeEvent()
        {
            var view = new RegistrartionViewMock();
            var presenter = new RegistrationPresenter(view);

            view.RaiseInitialize();

            Assert.AreEqual(5, view.Age);
        }
        public void ViewRaisesTheAttenceSaveEvent()
        {
            var view = new RegistrartionViewMock();
            var presenter = new RegistrationPresenter(view);

            view.RaiseRegisterUser();

            Assert.AreEqual(true, view.RegistrationSuccessful);
        }