feat: persist job source and market
This commit is contained in:
@@ -202,7 +202,9 @@ public sealed class JobApplicationsEndpointBehaviorTests
|
||||
CoverLetterText: null,
|
||||
JobUrl: null,
|
||||
DateApplied: null,
|
||||
FeedbackRequestedAt: null);
|
||||
FeedbackRequestedAt: null,
|
||||
Source: "NAV",
|
||||
CountryCode: "no");
|
||||
|
||||
var result = await controller.Create(request, CancellationToken.None);
|
||||
|
||||
@@ -213,6 +215,11 @@ public sealed class JobApplicationsEndpointBehaviorTests
|
||||
Assert.Equal("NOK", saved.SalaryCurrency);
|
||||
Assert.Equal("year", saved.SalaryPeriod);
|
||||
Assert.Equal("60-70k", saved.Salary);
|
||||
var opportunity = await db.Jobs.SingleAsync();
|
||||
Assert.Equal(opportunity.Id, saved.JobId);
|
||||
Assert.Equal("nav", opportunity.Source);
|
||||
Assert.Equal("NO", opportunity.CountryCode);
|
||||
Assert.Equal(saved.JobTitle, opportunity.JobTitle);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
|
||||
Reference in New Issue
Block a user