feat: persist job source and market
CI and Deploy / test (push) Successful in 2m34s
CI and Deploy / deploy (push) Successful in 56s

This commit is contained in:
cesnimda
2026-07-30 23:38:22 +02:00
parent efc9d83c25
commit 988a91a151
12 changed files with 62 additions and 9 deletions
@@ -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]