This commit is contained in:
Zeeshaun
2026-04-22 16:27:50 +00:00
parent 146e9cd8ab
commit 1931cc8e17
@@ -292,6 +292,23 @@ public class JobRepositoryTest : DbContextFromJsonTest
updatedJob.RequestingApplication = "Test.RequestingApplication.3";
}
[Fact]
public async void Update_Returns_JobErrorRecipients()
{
var foundJob = await _jobRepository.FindByIdExcludingWorkItemsAsync(1085);
Assert.NotNull(foundJob);
Assert.Empty(foundJob.JobErrorRecipients);
foundJob.RequestingApplication = "Updated Application";
var updatedJob = await _jobRepository.Update(foundJob);
Assert.NotNull(updatedJob);
Assert.Single(updatedJob.JobErrorRecipients);
Assert.Equal("[email protected]", updatedJob.JobErrorRecipients.First().Recipient);
}
[Fact]
public async void AddAsync_Test()
{