Skip to content

Commit

Permalink
CODE RUB: Unrelated Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
glhays committed Aug 3, 2024
1 parent e85ac5b commit 69beb0d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions 2. Services/2.1 Foundations/2.1 Foundations.md
Original file line number Diff line number Diff line change
Expand Up @@ -542,7 +542,7 @@ private async void ShouldThrowValidationExceptionOnAddWhenIdIsInvalidAndLogItAsy

StudentValidationException actualStudentValidationException =
await Assert.ThrowsAsync<StudentValidationException>(
registerStudentTask.AsTask);
addStudentTask.AsTask);

// then
actualStudentValidationException.Should().BeEquivalentTo(
Expand Down Expand Up @@ -759,12 +759,12 @@ private async Task ShouldThrowValidationExceptionOnAddIfUpdatedByNotSameAsCreate
innerException: invalidStudentException);

// when
ValueTask<Student> registerStudentTask =
ValueTask<Student> addStudentTask =
this.studentService.AddStudentAsync(inputStudent);

StudentValidationException actualStudentValidationException =
await Assert.ThrowsAsync<StudentValidationException>(
registerStudentTask.AsTask);
addStudentTask.AsTask);

// then
actualStudentValidationException.Should().BeEquivalentTo(
Expand Down Expand Up @@ -1042,12 +1042,12 @@ private async void ShouldThrowDependencyValidationExceptionOnAddIfStudentAlready
.ThrowsAsync(duplicateKeyException);

// when
ValueTask<Student> registerStudentTask =
ValueTask<Student> addStudentTask =
this.studentService.AddStudentAsync(inputStudent);

StudentDependencyValidationException actualStudentDependencyValidationException =
await Assert.ThrowsAsync<StudentDependencyValidationException>(
registerStudentTask.AsTask);
addStudentTask.AsTask);

// then
actualStudentDependencyValidationException.Should().BeEquivalentTo(
Expand Down

0 comments on commit 69beb0d

Please sign in to comment.