Skip to content

Commit

Permalink
CODE RUB: UserContact RetrieveById
Browse files Browse the repository at this point in the history
  • Loading branch information
glhays committed Jul 22, 2023
1 parent 11e34b3 commit 4441840
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ namespace OtripleS.Web.Api.Tests.Unit.Services.Foundations.UserContacts
public partial class UserContactServiceTests
{
[Fact]
public async Task ShouldThrowDependencyExceptionOnRetrieveWhenSqlExceptionOccursAndLogItAsync()
public async Task ShouldThrowDependencyExceptionOnRetrieveByIdWhenSqlExceptionOccursAndLogItAsync()
{
// given
var someContactId = Guid.NewGuid();
Expand Down Expand Up @@ -58,7 +58,7 @@ await Assert.ThrowsAsync<UserContactDependencyException>(() =>
}

[Fact]
public async Task ShouldThrowDependencyExceptionOnRetrieveWhenDbUpdateExceptionOccursAndLogItAsync()
public async Task ShouldThrowDependencyExceptionOnRetrieveByIdWhenDbUpdateExceptionOccursAndLogItAsync()
{
// given
Guid someContactId = Guid.NewGuid();
Expand Down Expand Up @@ -97,7 +97,7 @@ await Assert.ThrowsAsync<UserContactDependencyException>(
}

[Fact]
public async Task ShouldThrowServiceExceptionOnRetrieveWhenExceptionOccursAndLogItAsync()
public async Task ShouldThrowServiceExceptionOnRetrieveByIdWhenExceptionOccursAndLogItAsync()
{
// given
Guid someContactId = Guid.NewGuid();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ namespace OtripleS.Web.Api.Tests.Unit.Services.Foundations.UserContacts
public partial class UserContactServiceTests
{
[Fact]
public async Task ShouldThrowValidatonExceptionOnRetrieveWhenContactIdOrUserIdIsInvalidAndLogItAsync()
public async Task ShouldThrowValidatonExceptionOnRetrieveByIdWhenContactIdOrUserIdIsInvalidAndLogItAsync()
{
// given
Guid inputContactId = Guid.Empty;
Expand Down Expand Up @@ -55,7 +55,7 @@ public async Task ShouldThrowValidatonExceptionOnRetrieveWhenContactIdOrUserIdIs
}

[Fact]
public async Task ShouldThrowValidationExceptionOnRetrieveWhenStorageUserContactIsInvalidAndLogItAsync()
public async Task ShouldThrowValidationExceptionOnRetrieveByIdWhenStorageUserContactIsInvalidAndLogItAsync()
{
// given
UserContact randomUserContact = CreateRandomUserContact();
Expand Down

0 comments on commit 4441840

Please sign in to comment.