protected override void Context()
 {
     base.Context();
     _chart         = new SimulationTimeProfileChart();
     _observedData1 = new DataRepository();
     _observedData2 = new DataRepository();
     _chart.AddObservedData(_observedData1);
     _chart.AddObservedData(_observedData2);
 }
예제 #2
0
        protected override void Context()
        {
            base.Context();
            _chart         = new SimulationTimeProfileChart();
            _observedData1 = new DataRepository();
            _observedData2 = new DataRepository();
            _chart.AddObservedData(_observedData1);
            _chart.AddObservedData(_observedData2);

            A.CallTo(() => _chartEditorPresenter.AddDataRepositories(A <IEnumerable <DataRepository> > ._))
            .Invokes(x => _allDataRepositoryAdded = x.GetArgument <IEnumerable <DataRepository> >(0).ToList());
        }
예제 #3
0
        protected override void Context()
        {
            base.Context();
            _curve = new Curve();
            _curve.SetxData(A.Fake <DataColumn>(), A.Fake <IDimensionFactory>());

            _chartEditorPresenter = A.Fake <IChartEditorPresenter>();
            _simulations          = A.Fake <IReadOnlyCollection <IndividualSimulation> >();
            var individualSimulation = new IndividualSimulation {
                SimulationSettings = new SimulationSettings()
            };

            _simulations = new List <IndividualSimulation> {
                individualSimulation
            };
            var simulationConcentrationChart = new SimulationTimeProfileChart();

            individualSimulation.AddAnalysis(simulationConcentrationChart);

            var dataRepository = generateDataRepository();

            individualSimulation.AddUsedObservedData(dataRepository);
            simulationConcentrationChart.AddObservedData(dataRepository);
            simulationConcentrationChart.AddCurve(_curve);

            A.CallTo(() => _projectRetriever.CurrentProject.ObservedDataBy(dataRepository.Id)).Returns(dataRepository);
            _chartEditorPresenter.Edit(new CurveChart());
        }
        protected override void Context()
        {
            base.Context();
            _observedData = new DataRepository();
            var simulationTimeProfileChart = new SimulationTimeProfileChart();

            simulationTimeProfileChart.AddObservedData(_observedData);
            sut.AddAnalysis(simulationTimeProfileChart);
        }
 protected override void Context()
 {
     base.Context();
     _simulation   = A.Fake <IndividualSimulation>();
     _observedData = A.Fake <DataRepository>();
     _chart        = new SimulationTimeProfileChart();
     _chart.AddObservedData(_observedData);
     sut.InitializeAnalysis(_chart);
     sut.UpdateAnalysisBasedOn(_simulation);
 }
예제 #6
0
        protected override void Context()
        {
            base.Context();
            _simulation   = A.Fake <IndividualSimulation>();
            _observedData = A.Fake <DataRepository>();
            _chart        = new SimulationTimeProfileChart();
            _chart.AddObservedData(_observedData);
            sut.InitializeAnalysis(_chart);
            sut.UpdateAnalysisBasedOn(_simulation);


            _dataRepositoriesRemoved = new List <DataRepository>();
            A.CallTo(() => _chartEditorPresenter.RemoveDataRepositories(A <IEnumerable <DataRepository> > ._))
            .Invokes(x => _dataRepositoriesRemoved.AddRange(x.GetArgument <IEnumerable <DataRepository> >(0)));
        }