Enforced phone number validation for `AdvancedSignature` envelopes:
- Introduced `CreateEnvelopeCommandValidator` to ensure receivers have non-empty phone numbers for advanced signatures.
- Updated `CreateEnvelopeWizardPopup.razor` to dynamically adjust phone number placeholder text and validate input.
- Added `ValidatePhoneNumber` method and integrated validation into the wizard's state management.
- Introduced `IsAdvancedSignatureSelected` helper property for conditional logic.
- Enhanced UI to reflect phone number requirements for advanced signatures.
Added a test case in `CreateEnvelopeCommandTests.cs` to verify that creating an advanced signature envelope without a phone number throws a `BadRequestException`.
Enhanced the envelope creation workflow to handle phone numbers:
- Added `PhoneNumber` property to `RecentReceiverSuggestionDto`.
- Updated `MappingProfile` to map `PhoneNumber`.
- Modified LINQ queries to include `PhoneNumber` in selection/grouping.
- Enhanced `CreateEnvelopeWizardPopup.razor` to display and manage phone numbers.
- Updated `CreateEnvelopeWizardReceiver` to include `PhoneNumber`.
- Enhanced `ReceiverFilterCriteria` and `ReceiverSuggestionFilterHandler` to filter by `PhoneNumber`.
- Adjusted CSS layout to accommodate the new phone number field.
- Added a unit test to ensure `PhoneNumber` persistence.
These changes allow users to input, display, and manage phone numbers alongside existing receiver details like name and email.
Added `IAuthenticator` dependency to `CreateEnvelopeCommandHandler` to enable access code generation for envelope receivers. Updated the `AccessCode` property of `EnvelopeReceiver` to store a 5-character code generated by `Authenticator.GenerateCode`.
Introduced a new test class `CreateEnvelopeCommandTests` with a test method `CreateEnvelope_ShouldGenerateAccessCode_ForEnvelopeReceiver` to validate the functionality. The test ensures that the access code is generated, not null, not empty, and has the correct length.
Updated test setup to include necessary configurations and dependencies.