protected override async Task Context() { await base.Context(); _importedPKParameter = A.Fake <QuantityPKParameter>(); _existingPKParameter = A.Fake <QuantityPKParameter>(); _importedPKParameter.QuantityPath = "Quantity"; A.CallTo(() => _importedPKParameter.Id).Returns("IMPORTED PARAMETER"); A.CallTo(() => _importedPKParameter.ToString()).Returns(_importedPKParameter.Id); _importedPKParameters.Add(_importedPKParameter); A.CallTo(() => _pkAnalyses.PKParameterBy(_importedPKParameter.Id)).Returns(_existingPKParameter); }
protected override void Context() { base.Context(); _importedPKParameter = A.Fake <QuantityPKParameter>(); _existingPKParameter = A.Fake <QuantityPKParameter>(); _importedPKParameter.QuantityPath = "Quantity"; _availableQuantities[_importedPKParameter.QuantityPath] = new Observer(); A.CallTo(() => _importedPKParameter.Id).Returns("IMPORTED PARAMETER"); A.CallTo(() => _importedPKParameter.ToString()).Returns(_importedPKParameter.Id); _importedPKParameters.Add(_importedPKParameter); A.CallTo(() => _pkAnalyses.PKParameterBy(_importedPKParameter.Id)).Returns(_existingPKParameter); }
public async Task should_have_added_the_information_to_the_log_that_the_pk_parameter_were_successfully_imported_nonetheless() { _simulationPKParametersImport = await sut.ImportPKParameters(_populationSimulation, _fileFullPath, _token); _simulationPKParametersImport.Log.Any(x => x.Contains(_importedPKParameter.ToString())).ShouldBeTrue(); }