コード例 #1
0
 public ParameterIdentificationResidualHistogramPresenter(
     IParameterIdentificationSingleRunAnalysisView view,
     IParameterIdentificationResidualHistogramView histogramView,
     IPresentationSettingsTask presentationSettingsTask,
     IResidualDistibutionDataCreator residualDistibutionDataCreator,
     INormalDistributionDataCreator normalDistributionDataCreator,
     IApplicationSettings applicationSettings) : base(view)
 {
     _presentationSettingsTask       = presentationSettingsTask;
     _histogramView                  = histogramView;
     _residualDistibutionDataCreator = residualDistibutionDataCreator;
     _normalDistributionDataCreator  = normalDistributionDataCreator;
     _applicationSettings            = applicationSettings;
     _nameProperty         = ReflectionHelper.PropertyFor <ParameterIdentificationResidualHistogram, string>(x => x.Name).Name;
     view.ApplicationIcon  = ApplicationIcons.ResidualHistogramAnalysis;
     _distributionSettings = new DistributionSettings
     {
         AxisCountMode = AxisCountMode.Count,
         BarType       = BarType.SideBySide,
         XAxisTitle    = Captions.ParameterIdentification.Residuals,
         YAxisTitle    = Captions.ParameterIdentification.ResidualCount
     };
     _view.SetAnalysisView(histogramView);
     _histogramView.CopyToClipboardManager = this;
     view.HelpId = HelpId.Tool_PI_Analysis_HistogramResiduals;
 }
コード例 #2
0
        protected override void Context()
        {
            _view                          = A.Fake <IParameterIdentificationSingleRunAnalysisView>();
            _histogramView                 = A.Fake <IParameterIdentificationResidualHistogramView>();
            _presentationSettingsTask      = A.Fake <IPresentationSettingsTask>();
            _residualDataCreator           = A.Fake <IResidualDistibutionDataCreator>();
            _normalDistributionDataCreator = A.Fake <INormalDistributionDataCreator>();
            _applicationSettings           = A.Fake <IApplicationSettings>();

            sut = new ParameterIdentificationResidualHistogramPresenter(_view, _histogramView, _presentationSettingsTask, _residualDataCreator, _normalDistributionDataCreator, _applicationSettings);

            _parameterIdentification = new ParameterIdentification();
            _residualHistogram       = new ParameterIdentificationResidualHistogram();
        }