Skip to content

Commit 8408617

Browse files
committed
test: add Email to UpdateProfileCommand test
1 parent dc74a72 commit 8408617

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Finance.Application.Tests/Handlers/AuthHandlerTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ public async Task UpdateProfile_Should_ReturnSuccess_When_UserExists()
151151
_userRepoMock.Setup(r => r.GetByIdAsync(userId)).ReturnsAsync(existing);
152152
_userRepoMock.Setup(r => r.UpdateAsync(It.IsAny<User>())).ReturnsAsync((User u) => u);
153153

154-
var result = await handler.Handle(new UpdateProfileCommand { Name = "New Name" }, CancellationToken.None);
154+
var result = await handler.Handle(new UpdateProfileCommand { Name = "New Name", Email = "u@email.com" }, CancellationToken.None);
155155

156156
result.IsSuccess.Should().BeTrue();
157157
result.Data.Should().NotBeNull();

0 commit comments

Comments
 (0)