Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DEVX-6546 | [Video] Refactoring #316

Merged
merged 10 commits into from
Dec 22, 2022
Merged

DEVX-6546 | [Video] Refactoring #316

merged 10 commits into from
Dec 22, 2022

Conversation

Tr00d
Copy link
Contributor

@Tr00d Tr00d commented Dec 22, 2022

Mostly about dealing with duplication:

  • In tests
    • WireMock extensions
    • FsCheck extensions (Property-Based testing)
    • UseCaseHelper
  • In codebase
    • Input validation

@Tr00d Tr00d marked this pull request as ready for review December 22, 2022 16:23
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 7 Code Smells

100.0% 100.0% Coverage
0.0% 0.0% Duplication

@Tr00d Tr00d merged commit 30201ad into main Dec 22, 2022
@Tr00d Tr00d deleted the devx-6546-refactoring branch December 22, 2022 16:42
Tr00d added a commit that referenced this pull request Jan 9, 2023
* Remove duplication when creating WireMock requests/responses

* Implement UseCaseHelper to reduce duplication

* Code cleanup

* Reduce duplication on property-based tests

* Use generator for FsCheck, use HttpStatusCode instead of string for ErrorResponse

* Create method for converting an ErrorReponse to HttpFailure

* Implement ValueObject and StringIdentifier

* Implement implicit operator for Identifier

* Missing constant on Identifier

* Address duplication in InputValidation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants