Refactor code formatting and improve readability: standardize line breaks and indentation across various endpoint files, enhancing code clarity and maintainability. Update package version formatting in Directory.Packages.props for consistency.

This commit is contained in:
Leonid Pershin
2026-07-25 19:55:01 +03:00
parent 1f6fa6f1ae
commit f57b7503ed
122 changed files with 1856 additions and 892 deletions
@@ -34,7 +34,9 @@ public class CreateUserCommandHandlerTests
Assert.True(result.IsSuccess);
Assert.Equal(userId, result.Value);
await _roleService.Received(1).ChangeUserRoleAsync(userId, roleId, Arg.Any<CancellationToken>());
await _roleService
.Received(1)
.ChangeUserRoleAsync(userId, roleId, Arg.Any<CancellationToken>());
}
[Fact]
@@ -43,7 +45,10 @@ public class CreateUserCommandHandlerTests
_roleService.ListRolesAsync(Arg.Any<CancellationToken>()).Returns(new List<RoleDto>());
var result = await CreateHandler()
.Handle(new CreateUserCommand("bob", "Password1", Guid.NewGuid()), CancellationToken.None);
.Handle(
new CreateUserCommand("bob", "Password1", Guid.NewGuid()),
CancellationToken.None
);
Assert.False(result.IsSuccess);
Assert.Equal(RoleErrors.NotFound, result.Error);