# belal123-hub/oop-projects architecture

> Architecture diagram of the GitHub repository belal123-hub/oop-projects, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-12-04). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/belal123-hub/oop-projects
- Repository: https://github.com/belal123-hub/oop-projects

## Overview

The repository contains a console-based personal finance app for user accounts, wallets, income/expense tracking, and date-range statistics, plus a separate money-arithmetic console example. The main workflow runs from menu input through business logic to wallet operations and persisted user data. Source excerpts show these core calls and the JSON-backed store; some menu handlers and the bank app’s money implementation were not sampled, so uncertain wiring is omitted.

Main entry points: [`Bank-account-project/Wallet.cs`](https://github.com/belal123-hub/oop-projects/blob/master/Bank-account-project/Wallet.cs) (Wallet balance), [`Bank-account-project/Program.cs`](https://github.com/belal123-hub/oop-projects/blob/master/Bank-account-project/Program.cs) (Main menu), [`Bank-account-project/BusinessLogicService.cs`](https://github.com/belal123-hub/oop-projects/blob/master/Bank-account-project/BusinessLogicService.cs) (Business logic), [`Bank-account-project/Storage.cs`](https://github.com/belal123-hub/oop-projects/blob/master/Bank-account-project/Storage.cs) (JSON user store)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_interaction["Console interaction"]
  node_main["Main menu<br/>[Program.cs]"]
end

subgraph group_account["Accounts and wallets"]
  node_logic["Business logic"]
  node_users["User profiles<br/>[User.cs]"]
  node_storage[("JSON user store<br/>[Storage.cs]")]
  node_wallet["Wallet balance<br/>[Wallet.cs]"]
  node_bank_money["Bank app money values<br/>[Money.cs]"]
end

subgraph group_tracking["Transaction tracking"]
  node_wallet_ops["Operation routing<br/>[WalletService.cs]"]
  node_transactions["Transaction details"]
  node_categories["Income and expense categories"]
end

subgraph group_money["Money examples"]
  node_money_main["Money demo<br/>[Program.cs]"]
  node_money_type["Money arithmetic<br/>[Money.cs]"]
end

node_person(("User"))

node_person -->|"uses"| node_main
node_main -->|"requests"| node_logic
node_main -->|"loads users"| node_storage
node_logic -->|"reads and updates"| node_storage
node_storage -->|"loads and saves"| node_users
node_users -->|"owns wallets"| node_wallet
node_logic -->|"selects and reports"| node_wallet
node_logic -->|"returns statistics"| node_transactions
node_main -.->|"routes operations"| node_wallet_ops
node_wallet_ops -->|"adds operation"| node_wallet
node_wallet -->|"builds statistics"| node_transactions
node_wallet -->|"uses types"| node_categories
node_wallet -->|"stores and calculates"| node_bank_money
node_money_main -->|"demonstrates"| node_money_type

click node_main "https://github.com/belal123-hub/oop-projects/blob/master/Bank-account-project/Program.cs"
click node_logic "https://github.com/belal123-hub/oop-projects/blob/master/Bank-account-project/BusinessLogicService.cs"
click node_users "https://github.com/belal123-hub/oop-projects/blob/master/Bank-account-project/User.cs"
click node_storage "https://github.com/belal123-hub/oop-projects/blob/master/Bank-account-project/Storage.cs"
click node_wallet "https://github.com/belal123-hub/oop-projects/blob/master/Bank-account-project/Wallet.cs"
click node_wallet_ops "https://github.com/belal123-hub/oop-projects/blob/master/Bank-account-project/WalletService.cs"
click node_transactions "https://github.com/belal123-hub/oop-projects/blob/master/Bank-account-project/TransactionDetails.cs"
click node_categories "https://github.com/belal123-hub/oop-projects/tree/master/Bank-account-project/Enums"
click node_bank_money "https://github.com/belal123-hub/oop-projects/blob/master/Bank-account-project/Money.cs"
click node_money_main "https://github.com/belal123-hub/oop-projects/blob/master/money-project/Program.cs"
click node_money_type "https://github.com/belal123-hub/oop-projects/blob/master/money-project/Money.cs"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_main,node_person toneBlue
class node_logic,node_users,node_storage,node_wallet,node_bank_money toneAmber
class node_wallet_ops,node_transactions,node_categories toneMint
class node_money_main,node_money_type toneRose
```

## Components

### Console interaction

- [Main menu](https://github.com/belal123-hub/oop-projects/blob/master/Bank-account-project/Program.cs): `Bank-account-project/Program.cs`

### Accounts and wallets

- [Business logic](https://github.com/belal123-hub/oop-projects/blob/master/Bank-account-project/BusinessLogicService.cs): `Bank-account-project/BusinessLogicService.cs`
- [User profiles](https://github.com/belal123-hub/oop-projects/blob/master/Bank-account-project/User.cs): `Bank-account-project/User.cs`
- [JSON user store](https://github.com/belal123-hub/oop-projects/blob/master/Bank-account-project/Storage.cs): `Bank-account-project/Storage.cs`
- [Wallet balance](https://github.com/belal123-hub/oop-projects/blob/master/Bank-account-project/Wallet.cs): `Bank-account-project/Wallet.cs`
- [Bank app money values](https://github.com/belal123-hub/oop-projects/blob/master/Bank-account-project/Money.cs): `Bank-account-project/Money.cs`

### Transaction tracking

- [Operation routing](https://github.com/belal123-hub/oop-projects/blob/master/Bank-account-project/WalletService.cs): `Bank-account-project/WalletService.cs`
- [Transaction details](https://github.com/belal123-hub/oop-projects/blob/master/Bank-account-project/TransactionDetails.cs): `Bank-account-project/TransactionDetails.cs`
- [Income and expense categories](https://github.com/belal123-hub/oop-projects/tree/master/Bank-account-project/Enums): `Bank-account-project/Enums`

### Money examples

- [Money demo](https://github.com/belal123-hub/oop-projects/blob/master/money-project/Program.cs): `money-project/Program.cs`
- [Money arithmetic](https://github.com/belal123-hub/oop-projects/blob/master/money-project/Money.cs): `money-project/Money.cs`

### Other components

- **User**

## Connections

- User → Main menu: uses (evidence: `Bank-account-project/Program.cs`)
- Main menu → Business logic: requests (evidence: `Bank-account-project/Program.cs`)
- Main menu → JSON user store: loads users (evidence: `Bank-account-project/Program.cs`)
- Business logic → JSON user store: reads and updates (evidence: `Bank-account-project/BusinessLogicService.cs`)
- JSON user store → User profiles: loads and saves (evidence: `Bank-account-project/Storage.cs`)
- User profiles → Wallet balance: owns wallets (evidence: `Bank-account-project/User.cs`)
- Business logic → Wallet balance: selects and reports (evidence: `Bank-account-project/BusinessLogicService.cs`)
- Business logic → Transaction details: returns statistics (evidence: `Bank-account-project/BusinessLogicService.cs`)
- Main menu → Operation routing: routes operations (evidence: `Bank-account-project/Program.cs`)
- Operation routing → Wallet balance: adds operation (evidence: `Bank-account-project/WalletService.cs`)
- Wallet balance → Transaction details: builds statistics (evidence: `Bank-account-project/Wallet.cs`)
- Wallet balance → Income and expense categories: uses types (evidence: `Bank-account-project/Wallet.cs`)
- Wallet balance → Bank app money values: stores and calculates (evidence: `Bank-account-project/Wallet.cs`)
- Money demo → Money arithmetic: demonstrates (evidence: `money-project/Program.cs`)
