Skip to content

Instantly share code, notes, and snippets.

@IntegerMan
Created September 12, 2019 14:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save IntegerMan/005261eb0bc517deefacd24a3344aa70 to your computer and use it in GitHub Desktop.
Save IntegerMan/005261eb0bc517deefacd24a3344aa70 to your computer and use it in GitHub Desktop.
[NotNull]
public AnalysisResult Analyze([NotNull] ResumeInfo resume,
[CanBeNull] 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