Ejemplo n.º 1
0
        public void ShowBug_Sets_BugProperty_On_View()
        {
            MockRepository repo        = new MockRepository();
            ISingleBugView mockBugView = repo.StrictMock <ISingleBugView>();
            IBug           mockBug     = repo.StrictMock <IBug>();

            mockBugView.Expect(view => view.Bug).SetPropertyWithArgument(mockBug);

            repo.ReplayAll();

            ISingleBugViewPresenter pres = new SingleBugViewPresenter(mockBugView);

            pres.ShowBug(mockBug);

            mockBugView.VerifyAllExpectations();
        }
Ejemplo n.º 2
0
 public SingleBugViewPresenter(ISingleBugView view)
 {
     _singleBugView = view;
 }
 public SingleBugViewPresenter(ISingleBugView view)
 {
     _singleBugView = view;
 }