public BoxWhiskerNumericFieldsPresenter(IBoxWhiskerNumericFieldsView view, IMultipleNumericFieldsPresenter multipleNumericFieldsPresenter, IEventPublisher eventPublisher) : base(view) { _multipleNumericFieldsPresenter = multipleNumericFieldsPresenter; _eventPublisher = eventPublisher; _multipleNumericFieldsPresenter.AllowedType = typeof(PopulationAnalysisNumericField); view.AddFieldSelectionView(multipleNumericFieldsPresenter.BaseView); AddSubPresenters(multipleNumericFieldsPresenter); _dto = new BoxWhiskerNumericFieldDTO(); }
protected override void Context() { base.Context(); A.CallTo(() => _view.BindTo(A <BoxWhiskerNumericFieldDTO> ._)) .Invokes(x => _dto = x.GetArgument <BoxWhiskerNumericFieldDTO>(0)); _boxWhiskerAnalysis.ShowOutliers = true; sut.StartAnalysis(_populationDataCollector, _boxWhiskerAnalysis); }
protected override void Context() { base.Context(); A.CallTo(() => _view.BindTo(A <BoxWhiskerNumericFieldDTO> ._)) .Invokes(x => _dto = x.GetArgument <BoxWhiskerNumericFieldDTO>(0)); A.CallTo(() => _eventPublisher.PublishEvent(A <PopulationAnalysisDataSelectionChangedEvent> ._)) .Invokes(x => _event = x.GetArgument <PopulationAnalysisDataSelectionChangedEvent>(0)); _boxWhiskerAnalysis.ShowOutliers = false; sut.StartAnalysis(_populationDataCollector, _boxWhiskerAnalysis); }
public void BindTo(BoxWhiskerNumericFieldDTO dto) { _screenBinder.BindToSource(dto); }