示例#1
0
        protected override void Before_each_spec()
        {
            _manager = Create<MainWindowManager>();
             _mockWindowAdapter = Mock<IWindowAdapter>();
             _mockPresenterExisting = Mock<IPresenter>();
             _mockPresenterNew = Mock<IPresenter>();

             SetupResult
            .For(_mockPresenterExisting.Key)
            .Return("Existing");

             SetupResult
            .For(_mockPresenterNew.Key)
            .Return("New");
        }
示例#2
0
        protected override void Before_each_spec()
        {
            _manager = Create<MainWindowManager>();
             _mockWindowAdapter = Mock<IWindowAdapter>();
             _mockPresenter = Mock<IPresenter>();

             SetupResult
            .For(_mockPresenter.Key)
            .Return("Test");
        }