protected override void Establish_context() { base.Establish_context(); _view = MockRepository.GenerateMock <IDisplayBooksReadView>(); _view.Expect(v => v.Bind()); _controller = new DisplayBooksReadController(_view); }
protected override void Establish_context() { base.Establish_context(); _view = MockRepository.GenerateMock <IDisplayBooksReadView>(); _view.Expect(v => v.DataRequested += null).IgnoreArguments(); }
protected override void Establish_context() { base.Establish_context(); _view = Substitute.For <IDisplayBooksReadView>(); _controller = new DisplayBooksReadController(_view); }
public DisplayBooksReadController(IDisplayBooksReadView view) { View = view; view.DataRequested += GetData; }