protected override void Context() { _oldSimulation = A.Fake <ISimulation>(); _sensitivityAnalysis = new SensitivityAnalysis { Simulation = _oldSimulation }; _newSimulation = A.Fake <ISimulation>(); _simulationQuantitySelectionFinder = A.Fake <ISimulationQuantitySelectionFinder>(); sut = new SensitivityAnalysisSimulationSwapCorrector(_simulationQuantitySelectionFinder); _validSensitivityParameter = new SensitivityParameter { ParameterSelection = new ParameterSelection(_oldSimulation, "valid") }; _sensitivityAnalysis.AddSensitivityParameter(_validSensitivityParameter); _invalidSensitivityParameter = new SensitivityParameter { ParameterSelection = new ParameterSelection(_oldSimulation, "invalid") }; _sensitivityAnalysis.AddSensitivityParameter(_invalidSensitivityParameter); A.CallTo(() => _simulationQuantitySelectionFinder.SimulationHasSelection(_invalidSensitivityParameter.ParameterSelection, _newSimulation)).Returns(false); A.CallTo(() => _simulationQuantitySelectionFinder.SimulationHasSelection(_validSensitivityParameter.ParameterSelection, _newSimulation)).Returns(true); }
protected ParameterIdentificationSimulationSwap(ISimulationQuantitySelectionFinder simulationQuantitySelectionFinder) { _simulationQuantitySelectionFinder = simulationQuantitySelectionFinder; }
protected SensitivityAnalysisSimulationSwap(ISimulationQuantitySelectionFinder simulationQuantitySelectionFinder) { _simulationQuantitySelectionFinder = simulationQuantitySelectionFinder; }
public SensitivityAnalysisSimulationSwapValidator(ISimulationQuantitySelectionFinder simulationQuantitySelectionFinder) : base(simulationQuantitySelectionFinder) { }
public ParameterIdentificationSimulationSwapCorrector(ISimulationQuantitySelectionFinder simulationQuantitySelectionFinder) : base(simulationQuantitySelectionFinder) { }