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

6. Extract Domain Logic to Transactions #79

Open
7 tasks
agilare opened this issue Sep 29, 2024 · 0 comments
Open
7 tasks

6. Extract Domain Logic to Transactions #79

agilare opened this issue Sep 29, 2024 · 0 comments
Assignees
Labels

Comments

@agilare
Copy link
Owner

agilare commented Sep 29, 2024

Process (from MLAP, p. 112) :

  • Search the entire codebase for uses of Gateway classes that exist outside Transactions classes.
  • Where we find Gateway usage, examine the logic surrounding the Gateway operations to discover which portions of that logic are related to the domain behaviors of the application.
  • Extract the relevant domain logic to one or more Transactions classes related to the domain elements, and modify the original code to use the Transactions class instead of the embedded domain logic.
  • Spot check to make sure the original code still works properly, and modify the extracted logic as necessary to ensure correct operation.
  • Write tests for the extracted Transactions logic, refining them along with the tested code until they pass.
  • When all original tests and new tests pass, commit the code and tests, push to the common repository, and notify QA.
  • Search again for uses of Gateway classes, and continue extracting domain logic until Gateway usage exists only in Transactions.
@agilare agilare self-assigned this Sep 29, 2024
@agilare agilare converted this from a draft issue Sep 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Todo
Development

No branches or pull requests

1 participant