Esempio n. 1
0
        public void The_Attendee_should_be_saved()
        {
            MockView mockView = new MockView();
            RegistrationPresenter _presenter = new RegistrationPresenter(mockView);

            mockView.RaiseRegisterUser();

            Assert.AreEqual(true, mockView.RegistrationSuccessful);
        }
Esempio n. 2
0
        public void The_presenter_should_set_the_default_age()
        {
            MockView mockView = new MockView();

            RegistrationPresenter _presenter = new RegistrationPresenter(mockView);

            mockView.RaiseInitialize();

            Assert.AreEqual(5, mockView.Age);
        }