protected override async Task Context() { await base.Context(); _snapshot = await sut.MapToSnapshot(_parameterIdentificationConfiguration); _newParameterConfiguration = new ParameterIdentificationConfiguration(); _newAlgorithProperties = new OptimizationAlgorithmProperties("HOLA"); _newRunMode = new MultipleParameterIdentificationRunMode(); A.CallTo(() => _algorithmMapper.MapToModel(_snapshotAlgorithmProperties)).Returns(_newAlgorithProperties); A.CallTo(() => _parameterIdentificationRunModeMapper.MapToModel(_snapshotRunMode)).Returns(_newRunMode); }
protected override Task Context() { _parameterIdentificationRunModeMapper = A.Fake <ParameterIdentificationRunModeMapper>(); _algorithmMapper = A.Fake <ParameterIdentificationAlgorithmMapper>(); sut = new ParameterIdentificationConfigurationMapper(_parameterIdentificationRunModeMapper, _algorithmMapper); _snapshotRunMode = new ParameterIdentificationRunMode(); _snapshotAlgorithmProperties = new OptimizationAlgorithm(); _parameterIdentificationConfiguration = new ParameterIdentificationConfiguration { CalculateJacobian = true, LLOQMode = LLOQModes.OnlyObservedData, RemoveLLOQMode = RemoveLLOQModes.NoTrailing, RunMode = new StandardParameterIdentificationRunMode(), AlgorithmProperties = new OptimizationAlgorithmProperties("HELLO") }; A.CallTo(() => _parameterIdentificationRunModeMapper.MapToSnapshot(_parameterIdentificationConfiguration.RunMode)).Returns(_snapshotRunMode); A.CallTo(() => _algorithmMapper.MapToSnapshot(_parameterIdentificationConfiguration.AlgorithmProperties)).Returns(_snapshotAlgorithmProperties); return(_completed); }