private IEnumerable <ResultPair> EvaluateSourceItem(SourcePair sourceItem, Period evalPeriod, IPeriodProfile evalProfile, IEnumerable <ResultPair> evalResults) { TargetItem targetInResult = sourceItem.Key; SourcePack sourceInResult = sourceItem.Value; IEnumerable <ResultPack> resultList = sourceInResult.OnSuccessToResultSetEvaluate(targetInResult, evalPeriod, evalProfile, evalResults, _evaluateResultsFunc); return(resultList.Select((r) => (new ResultPair(sourceItem.Key, r))).ToList()); }
public TargetItem StoreGeneralItem(TargetData dataItem) { ArticleTarget newTarget = new ArticleTarget(dataItem.Head, dataItem.Part, dataItem.Code, dataItem.Seed); SourcePack newSource = GetTemplateSourceForArticle(dataItem.Code, dataItem.Tags); model.Add(newTarget, newSource); return(newTarget); }
public TargetItem StoreGeneralItem(TargetHead codeHead, TargetPart codePart, ConfigCode codeBody, TargetSeed seedBody, ISourceValues tagsBody) { ArticleTarget newTarget = new ArticleTarget(codeHead, codePart, codeBody, seedBody); SourcePack newSource = GetTemplateSourceForArticle(codeBody, tagsBody); model.Add(newTarget, newSource); return(newTarget); }