public void WireUpController() { _main_view = MockRepository.GenerateMock<IMainWindowView>(); _inbox_view = MockRepository.GenerateMock<IInBoxView>(); _action_view = MockRepository.GenerateMock<IItemView>(); new MainWindowController(_main_view, _inbox_view, _action_view); }
public void SetupTests() { _view = MockRepository.GenerateMock<IInBoxView>(); _view.Stub(x => x.List).Return(MockRepository.GenerateMock<IListSelectionChanger>()); var model = MockRepository.GenerateStub<IItemModel<InBoxItem>>(); _converter = MockRepository.GenerateMock<IItemConverter>(); _form = CreateInboxController(model); }
public MainWindowController(IMainWindowView main_view, IInBoxView inbox_view, IItemView action_view) { _main_view = main_view; _inbox_view = inbox_view; _action_view = action_view; _main_view.Shown += delegate { SetFocusOnTextBoxInSelectedTab(); }; _main_view.GotFocus += delegate { SetFocusOnTextBoxInSelectedTab(); }; _main_view.SelectedTabChanged += SetFocusOnTextBoxInSelectedTab; }