Skip to content

test: Added Tests to ValidationHelper.cs#816

Closed
Joseph2910 wants to merge 4 commits intomainfrom
New-Validation-Tests
Closed

test: Added Tests to ValidationHelper.cs#816
Joseph2910 wants to merge 4 commits intomainfrom
New-Validation-Tests

Conversation

@Joseph2910
Copy link
Copy Markdown
Contributor

Description

Context

https://nhsd-jira.digital.nhs.uk/browse/DTOSS-7738

Type of changes

  • Refactoring (non-breaking change)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would change existing functionality)
  • Bug fix (non-breaking change which fixes an issue)

Checklist

  • I am familiar with the contributing guidelines
  • I have followed the code style of the project
  • I have added tests to cover my changes
  • I have updated the documentation accordingly
  • This PR is a result of pair or mob programming

Sensitive Information Declaration

To ensure the utmost confidentiality and protect your and others privacy, we kindly ask you to NOT including PII (Personal Identifiable Information) / PID (Personal Identifiable Data) or any other sensitive data in this PR (Pull Request) and the codebase changes. We will remove any PR that do contain any sensitive information. We really appreciate your cooperation in this matter.

  • I confirm that neither PII/PID nor sensitive data are included in this PR and the codebase changes.

andrewmorris43
andrewmorris43 previously approved these changes Mar 14, 2025
@Joseph2910 Joseph2910 added the test coverage A PR that is concerned with Unit/Component tests only label Mar 14, 2025
sudipnhs
sudipnhs previously approved these changes Mar 17, 2025
Comment thread tests/UnitTests/SharedTests/ValidationHelperTests/ValidationHelperTests.cs Outdated
Co-authored-by: will-larkin-nhs <160748088+will-larkin-nhs@users.noreply.github.com>
@Joseph2910 Joseph2910 dismissed stale reviews from sudipnhs and andrewmorris43 via 6846bec March 18, 2025 16:21

[TestMethod]
[DataRow(null)] // null
[DataRow("20300101")] // future date
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could we calculate a future date rather than hardcoding? this will start failing in 2030

@Joseph2910 Joseph2910 closed this Mar 20, 2025
@Joseph2910 Joseph2910 deleted the New-Validation-Tests branch March 20, 2025 09:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

test coverage A PR that is concerned with Unit/Component tests only

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants