Updating
This commit is contained in:
+17
@@ -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()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user