예제 #1
0
        public void InitializeRepositoriesWithOriginalData()
        {
            var newRepositories = _dataRepositoryCreator.CreateOriginalDataRepositories(_model).ToList();

            ChartEditorPresenter.AddDataRepositories(newRepositories);
            addNewRepositories(newRepositories);
        }
예제 #2
0
        private void addRepositoryToChart(DataRepository newRepository)
        {
            var dataRepositories = new[] { newRepository };

            ChartEditorPresenter.AddDataRepositories(dataRepositories);
            addNewRepositories(dataRepositories);
            addNewCurvesToChart(dataRepositories);
        }
예제 #3
0
        protected override void Context()
        {
            base.Context();
            _firstObservedData1 = _observedData1.ObservationColumns().First();
            _firstObservedData2 = _observedData2.ObservationColumns().First();

            _simulationResult1 = DomainHelperForSpecs.IndividualSimulationDataRepositoryFor("SimulationResult1");
            _simulationResult2 = DomainHelperForSpecs.IndividualSimulationDataRepositoryFor("SimulationResult2");
            _outputColumn1     = _simulationResult1.AllButBaseGrid().First();

            A.CallTo(() => _outputMapping1.FullOutputPath).Returns(_outputColumn1.QuantityInfo.PathAsString);
            A.CallTo(() => _outputMapping2.FullOutputPath).Returns(_outputColumn1.QuantityInfo.PathAsString);
            _optimizationRunResult.AddResult(_simulationResult1);
            _optimizationRunResult.AddResult(_simulationResult2);
            _optimizationRunResult2.AddResult(DomainHelperForSpecs.IndividualSimulationDataRepositoryFor("SimulationResult3"));
            _optimizationRunResult2.AddResult(DomainHelperForSpecs.IndividualSimulationDataRepositoryFor("SimulationResult4"));

            _parameterIdentification.Configuration.RunMode = new MultipleParameterIdentificationRunMode();

            _allAddedDataRepositories = new List <DataRepository>();;
            A.CallTo(() => ChartEditorPresenter.AddDataRepositories(A <IEnumerable <DataRepository> > ._))
            .Invokes(x => _allAddedDataRepositories.AddRange(x.GetArgument <IEnumerable <DataRepository> >(0)));
        }
예제 #4
0
 public void should_create_one_repository_for_each_output_containing_the_value_of_the_residuals_and_for_the_marker()
 {
     A.CallTo(() => ChartEditorPresenter.AddDataRepositories(A <IEnumerable <DataRepository> > ._)).MustHaveHappened();
 }