protected override void Context()
        {
            _presentationSettingsTask = A.Fake <IPresentationSettingsTask>();
            _view                        = A.Fake <IParameterIdentificationSingleRunAnalysisView>();
            _matrixCalculator            = A.Fake <IMatrixCalculator>();
            _parameterIdentification     = A.Fake <ParameterIdentification>();
            _correlationCovarianceMatrix = A.Fake <ParameterIdentificationCovarianceMatrix>();
            _matrixPresenter             = A.Fake <IParameterIdentificationMatrixPresenter>();
            _covarianceView              = A.Fake <IParameterIdentificationCovarianceAnalysisView>();
            _confidenceIntervalPresenter = A.Fake <IParameterIdentificationConfidenceIntervalPresenter>();
            A.CallTo(() => _parameterIdentification.Results).Returns(new[] { new ParameterIdentificationRunResult {
                                                                                 JacobianMatrix = new JacobianMatrix(new[] { "A" })
                                                                             } });
            var matrix = new Matrix(new[] { "A" }, new[] { "A" });

            matrix.SetRow(0, new[] { 1d });
            A.CallTo(_matrixCalculator).WithReturnType <Matrix>().Returns(matrix);
            sut = new ParameterIdentificationCovarianceAnalysisPresenter(_view, _covarianceView, _matrixPresenter, _presentationSettingsTask, _matrixCalculator, _confidenceIntervalPresenter);
        }
コード例 #2
0
 public ParameterIdentificationCovarianceAnalysisPresenter(IParameterIdentificationSingleRunAnalysisView view, IParameterIdentificationCovarianceAnalysisView covarianceAnalysisView,
                                                           IParameterIdentificationMatrixPresenter matrixPresenter, IPresentationSettingsTask presentationSettingsTask, IMatrixCalculator matrixCalculator, IParameterIdentificationConfidenceIntervalPresenter confidenceIntervalPresenter) :
     base(view, matrixPresenter, presentationSettingsTask, matrixCalculator, ApplicationIcons.CovarianceAnalysis, Captions.ParameterIdentification.CovarianceMatrixNotAvailable)
 {
     _confidenceIntervalPresenter = confidenceIntervalPresenter;
     covarianceAnalysisView.SetMatrixView(matrixPresenter.View);
     covarianceAnalysisView.SetConfidenceIntevalView(_confidenceIntervalPresenter.View);
     view.SetAnalysisView(covarianceAnalysisView);
     AddSubPresenters(_confidenceIntervalPresenter);
     view.HelpId = HelpId.Tool_PI_Analysis_CovarianceMatrix;
 }