Commit f7414db
refactor(unocrm): one file per class in Presentation/MockData
CrmPageMocks.cs stacked the Dashboard, Pipeline and Leads mocks into one
file named after the folder rather than a type — the file every new mock
gets appended to. Each now lives in DashboardPageMockData.cs,
PipelinePageMockData.cs and LeadsPageMockData.cs, matching the two mocks
that already had their own file. Each keeps its three-line ForModel
partial, which exists only to reach that one mock's protected
model-taking constructor.
The old file's 34-line header carried the rules every feed-shaped mock
follows, including the one that exists to stop a future edit ("these
feeds are inline no-capture lambdas — do not deduplicate them into a
helper"). Copying it three times would drift, so it moves onto
ContactsPageMockData.cs — the mock it already named as the reference —
as a numbered recipe the siblings cite by cref. Only the page-specific
paragraphs travelled with their own mock: the activity-list comparison
to Dashboard, the plain-arrays LiveCharts constraint to Leads.
DealDetailPageMockData now states why it sits outside the recipe (no
feeds, so nothing for a SourceContext to do).
No behaviour change: the previews bind these by type, the SDK globs the
new files, and every code line is preserved apart from normalizing
[Uno.Extensions.Reactive.ReactiveBindable] to the unqualified form its
siblings already used.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>1 parent b467f1a commit f7414db
6 files changed
Lines changed: 282 additions & 236 deletions
File tree
- studio/uno-crm/UnoCRM/Presentation/MockData
Lines changed: 37 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
3 | 40 | | |
4 | 41 | | |
5 | 42 | | |
| |||
Lines changed: 0 additions & 236 deletions
This file was deleted.
0 commit comments