Exemplo n.º 1
0
        protected override async Task Context()
        {
            await base.Context();

            var simulationPlot = new SimulationPlot
            {
                SectionId  = 2,
                Simulation = "SimDoesNotExist"
            };

            _qualificationConfiguration.SimulationPlots = new[] { simulationPlot };
        }
Exemplo n.º 2
0
        private IEnumerable <PlotMapping> retrievePlotDefinitionsForSimulation(SimulationPlot simulationPlot, Project snapshotProject)
        {
            var simulationName = simulationPlot.Simulation;
            var simulation     = simulationFrom(snapshotProject, simulationName);

            return(simulation.Analyses.Select(plot => new PlotMapping
            {
                Plot = plot,
                SectionId = simulationPlot.SectionId,
                Simulation = simulationName,
                Project = snapshotProject.Name
            }));
        }
        protected override async Task Context()
        {
            await base.Context();

            var simulation = new Simulation().WithName("Sim");


            _curveChart = new CurveChart();
            simulation.IndividualAnalyses = new[] { _curveChart };
            _simulationPlot = new SimulationPlot
            {
                SectionId  = 2,
                Simulation = simulation.Name
            };
            _projectSnapshot.Simulations = new[] { simulation };
            _qualificationConfiguration.SimulationPlots = new[] { _simulationPlot };
        }
Exemplo n.º 4
0
        protected override async Task Context()
        {
            await base.Context();

            var simulation = new Simulation().WithName("Sim");


            _curveChart = new CurveChart();
            simulation.IndividualAnalyses = new[] { _curveChart };
            _simulationPlot = new SimulationPlot
            {
                SectionId  = 2,
                Simulation = simulation.Name
            };
            _projectSnapshot.Simulations = new[] { simulation };
            _qualificationConfiguration.SimulationPlots = new[] { _simulationPlot };

            A.CallTo(() => _jsonSerializer.Serialize(A <QualificationMapping> ._, _qualificationConfiguration.MappingFile))
            .Invokes(x => _mapping = x.GetArgument <QualificationMapping>(0));
        }