Форматирование

This commit is contained in:
Халимов Рустам
2026-03-19 01:31:43 +03:00
parent 282b43d4c1
commit 8f2de0e9bf
90 changed files with 901 additions and 299 deletions

View File

@@ -35,12 +35,12 @@ public class RegisterUserCommandHandlerTests
// Assert
result.IsSuccess.Should().BeTrue();
result.Value.Should().NotBeEmpty();
_userRepository.Received(1).Add(Arg.Is<User>(u =>
u.Username == command.Username &&
_userRepository.Received(1).Add(Arg.Is<User>(u =>
u.Username == command.Username &&
u.DisplayName == command.DisplayName &&
u.Email == command.Email));
await _unitOfWork.Received(1).SaveChangesAsync(Arg.Any<CancellationToken>());
}
@@ -58,7 +58,7 @@ public class RegisterUserCommandHandlerTests
// Assert
result.IsFailure.Should().BeTrue();
result.Error.Code.Should().Be("Identity.UsernameNotUnique");
_userRepository.DidNotReceive().Add(Arg.Any<User>());
await _unitOfWork.DidNotReceive().SaveChangesAsync(Arg.Any<CancellationToken>());
}