Skip to content

113 refactoring to reduce coupling #128

Merged
merged 32 commits into from
May 25, 2026
Merged

Conversation

tommyah
Copy link
Member

@tommyah tommyah commented May 25, 2026

Refactored most classes in every package except for view. Added and updated unit tests for these classes.

tommyah added 30 commits May 25, 2026 10:22
Refactored Exchange, fixed semantic bugs, centralized logic, and made integerproperty read only for safety and encapsulation
Replaced for loops with streams, centralized concrete getters via get transactions, and added parameter guarding. Also updated test class.
Added validation for adding subscribers, and refactored test class for eventmanager. Removed unused getname method for eventchannel, and added validator ruleset for valid week.
Previously, the portfolio held a list over multiple share objects. Now, it holds a map keyed with symbol and value is a share determined by the quantity of all shares of that symbol. This enables a more intuitive way of storing shares.
Also updated tests to be independent on external files.
@tommyah tommyah linked an issue May 25, 2026 that may be closed by this pull request
11 tasks
@tommyah tommyah requested a review from etsorens May 25, 2026 18:43
Copy link
Member

@etsorens etsorens left a comment

Choose a reason for hiding this comment

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

lgtm

@etsorens etsorens merged commit 71c48d6 into main May 25, 2026
1 check passed
@etsorens etsorens deleted the 113-refactoring-to-reduce-coupling branch May 25, 2026 19:52
Sign in to join this conversation on GitHub.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Refactoring to reduce coupling
2 participants