Пример #1
0
        public void ShouldShowViewAndAttachEmailClickedEvent()
        {
            factory.Stub(x => x.CreateAboutView()).Return(view);
            view.Stub(x => x.ShowView()).Repeat.Once();
            view.EmailClicked += null;
            LastCall.Constraints(Is.NotNull());
            mocks.ReplayAll();

            var controller = new AboutController(factory);
            controller.Show();
        }
Пример #2
0
        public void ShouldShowViewAndAttachEmailClickedEvent()
        {
            factory.Stub(x => x.CreateAboutView()).Return(view);
            view.Stub(x => x.ShowView()).Repeat.Once();
            view.EmailClicked += null;
            LastCall.Constraints(Is.NotNull());
            mocks.ReplayAll();

            var controller = new AboutController(factory);
            controller.Show();
        }