コード例 #1
0
 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();
 }
コード例 #2
0
        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);
        }
コード例 #3
0
        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);
        }
コード例 #4
0
 public void BindTo(BoxWhiskerNumericFieldDTO dto)
 {
     _screenBinder.BindToSource(dto);
 }