protected override void Context() { base.Context(); sut.EditParameterAnalysable(_parameterIdentification); _parameter1 = A.Fake <IParameter>(); _allParameters.Add("PARA1", _parameter1); _simulatioQuantitySelectionDTO1 = new SimulationParameterSelectionDTO(_simulation, new QuantitySelectionDTO(), "PARA1"); A.CallTo(() => _simulationParameterSelectionDTOMapper.MapFrom(_simulation, _parameter1)).Returns(_simulatioQuantitySelectionDTO1); }
protected override void Context() { base.Context(); _parameter1 = A.Fake <IParameter>(); _parameter2 = A.Fake <IParameter>(); _allParameters.Add("PARA1", _parameter1); _allParameters.Add("PARA2", _parameter2); _simulatioQuantitySelectionDTO1 = new SimulationParameterSelectionDTO(_simulation, new QuantitySelectionDTO(), "PARA1"); _simulatioQuantitySelectionDTO2 = new SimulationParameterSelectionDTO(_simulation, new QuantitySelectionDTO(), "PARA2"); A.CallTo(() => _simulationParameterSelectionDTOMapper.MapFrom(_simulation, _parameter1)).Returns(_simulatioQuantitySelectionDTO1); A.CallTo(() => _simulationParameterSelectionDTOMapper.MapFrom(_simulation, _parameter2)).Returns(_simulatioQuantitySelectionDTO2); }