Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using Bogus;
- public abstract class ResumeTestsBase
- {
- private Faker _faker;
- protected Faker Faker => _faker ?? _faker = new Faker();
- protected JobInfo CreateRandomJob(int monthsInJob = -1) {
- string title = Faker.Name.JobTitle;
- string company = Faker.Company.CompanyName;
- // Ensure we have a valid months in job if not specified
- if (monthsInJob <= 0) {
- monthsInJob = Faker.Random.Int(1, 4200);
- }
- return new JobInfo(title, company, monthsInJob);
- }
- protected AnalyzerResult Analyze(ResumeInfo resume) {
- var provider = new KeywordScoringProvider();
- var analyzer = new ResumeAnalyzer(provider);
- return analyzer.Analyze(resume);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement