Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
public AnalysisResult Analyze(ResumeInfo resume, IContainer container)
{
if (resume == null) throw new ArgumentNullException(nameof(resume));
IKeywordBonusProvider bonusProvider;
if (container != null) {
bonusProvider = container.Resolve<IKeywordBonusProvider>();
} else {
bonusProvider = new EntityFrameworkKeywordProvider();
}
return CalculateScore(resume, bonusProvider);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment