internal async Task TrowsIfEmailIsNotUniq_EmailIsUniq_Success(
            string email,
            [Frozen] Mock <IUnitOfWork> unitOfWorkMock,
            RegistrationValidationService registrationValidationService)
        {
            // Arrange
            unitOfWorkMock
            .Setup(e => e.Any(It.Is <AccountQueryParameters>(q => q.NormalizedEmail == email)))
            .ReturnsAsync(false);

            // Act
            Func <Task> action = async() => await registrationValidationService.TrowsIfEmailIsNotUniq(email);

            // Assert
            await action.Should().NotThrowAsync();
        }
        internal async Task TrowsIfEmailIsNotUniq_EmailIsNotUniq_ThrowsCorrectException(
            string email,
            [Frozen] Mock <IUnitOfWork> unitOfWorkMock,
            RegistrationValidationService registrationValidationService)
        {
            // Arrange
            unitOfWorkMock
            .Setup(e => e.Any(It.Is <AccountQueryParameters>(q => q.NormalizedEmail == email)))
            .ReturnsAsync(true);

            // Act
            Func <Task> action = async() => await registrationValidationService.TrowsIfEmailIsNotUniq(email);

            // Assert
            await action.Should().ThrowWithCode <CodedException>(ErrorCode.LoginIsNotUniq);
        }