shoc-backend/Api.SeaHavenIndustries.Tests
Alexandre Brandizzi 41957d52a7 merge: rebase queue flags onto SH-210 decisions, drop duplicated contract fields
#144 branched from the SH-210 decision-actions commit before the SH-207/SH-208
read-contract corrections landed, so it re-implemented workOrderClosed,
attachmentCount, decidedByName, and pendingExposureTotal with stale semantics:
it projected WorkerOrderNumber (the CRM external id) instead of InternalWONumber
(what the board renders) and summed raw RequestedNTE, which double-counts the new
NTE total on vendor-portal rows across sequential approvals.

Merge origin/feat/ab/sh-210-uplift-decisions (#141, what lands) in and resolve
every conflict in #141's favour, so those fields and their granted-amount
exposure math now come from #141 rather than being duplicated here. Keep only the
two deltas #144 actually adds on top of #141:

- attachmentCount counts non-deleted UpliftEvidence documents on the dispatch,
  not every completion document, so completion photos no longer inflate the chip;
- the queue read resolves the effective work order via the primary-plus-linked
  (DispatchWorkOrders) convention the sibling reads use, so a dispatch linked only
  through that table surfaces its WO context, closed flag, and exposure. Covered
  by an in-memory test and a SQLite relational test that proves the fallback
  translates to SQL.

Drop the superseded attachment-count test that asserted completion documents
count, and align the relational test to seed InternalWONumber.
2026-09-17 12:52:13 -03:00
..
Api.SeaHavenIndustries.Tests.csproj Add calendar/events backend API (#8) 2026-06-22 18:46:46 -04:00
ArchitectureTests.cs chore(governance): enforce backend architecture and quality gates (#31) 2026-07-24 17:41:10 -03:00
AuthenticationControllerTests.cs refactor: enforce backend boundaries and optimize dispatch (#30) 2026-07-24 17:35:34 -03:00
AuthenticationServiceTests.cs refactor: enforce backend boundaries and optimize dispatch (#30) 2026-07-24 17:35:34 -03:00
CalendarControllerTests.cs refactor: enforce backend boundaries and optimize dispatch (#30) 2026-07-24 17:35:34 -03:00
CalendarServiceTests.cs refactor: enforce backend boundaries and optimize dispatch (#30) 2026-07-24 17:35:34 -03:00
DashboardControllerTests.cs test(dashboard): guard Stats wire object for KPI counts (SH-353) 2026-09-16 20:25:45 -03:00
DashboardServiceTests.cs Merge remote-tracking branch 'origin/dev' into feat/ab/sh-348-dashboard-region 2026-09-16 22:06:49 -03:00
DispatchBatchingBehaviorTests.cs refactor: enforce backend boundaries and optimize dispatch (#30) 2026-07-24 17:35:34 -03:00
DispatchControllerTests.cs refactor: enforce backend boundaries and optimize dispatch (#30) 2026-07-24 17:35:34 -03:00
DispatchServiceTests.cs refactor: enforce backend boundaries and optimize dispatch (#30) 2026-07-24 17:35:34 -03:00
DropdownOptionsServiceTests.cs refactor: enforce backend boundaries and optimize dispatch (#30) 2026-07-24 17:35:34 -03:00
FileStorageAdapterTests.cs feat(work-orders): stream stored WO media safely 2026-09-08 11:09:55 -03:00
FollowUpControllerTests.cs refactor: enforce backend boundaries and optimize dispatch (#30) 2026-07-24 17:35:34 -03:00
FollowUpServiceTests.cs refactor: enforce backend boundaries and optimize dispatch (#30) 2026-07-24 17:35:34 -03:00
IdentityTestHelpers.cs refactor: enforce backend boundaries and optimize dispatch (#30) 2026-07-24 17:35:34 -03:00
LocationControllerSitesTests.cs fix: omit unmapped sites from work order options (#89) 2026-08-26 16:39:25 -04:00
LocationControllerTests.cs feat(locations): support site registry queries (SH-330) 2026-09-16 20:45:15 -03:00
LocationDataServiceTests.cs feat(locations): support site registry queries (SH-330) 2026-09-16 20:45:15 -03:00
LocationServiceTests.cs feat(locations): support site registry queries (SH-330) 2026-09-16 20:45:15 -03:00
LocationSiteContactsTests.cs feat(locations): support site registry queries (SH-330) 2026-09-16 20:45:15 -03:00
ProcurementWorkOrderClientTests.cs feat: complete SH-133 procurement reconciliation 2026-07-24 22:13:25 -03:00
SanitizedErrorsTests.cs refactor: enforce backend boundaries and optimize dispatch (#30) 2026-07-24 17:35:34 -03:00
SentryObservabilityTests.cs fix(observability): preserve backend release identity (#114) 2026-09-15 16:08:14 -03:00
SentryPipelineContractTests.cs feat: add API Sentry tracing (SH-298) (#105) 2026-09-04 14:11:32 -03:00
ServiceBehaviorTests.cs test(work-orders): fix sync/webhook/recon fixtures for AccountId stamp [SH-221] 2026-08-11 10:54:23 -03:00
ServiceRegistrationTests.cs refactor: enforce backend boundaries and optimize dispatch (#30) 2026-07-24 17:35:34 -03:00
ServicesRegistryControllerTests.cs feat(services): add global services registry 2026-09-16 17:07:59 -03:00
ServicesRegistryServiceTests.cs fix(services): allow admins to reactivate services 2026-09-16 22:30:32 -03:00
SettingsControllerTests.cs refactor: enforce backend boundaries and optimize dispatch (#30) 2026-07-24 17:35:34 -03:00
SettingsServiceTests.cs refactor: enforce backend boundaries and optimize dispatch (#30) 2026-07-24 17:35:34 -03:00
TaskListTemplateServiceTests.cs refactor: enforce backend boundaries and optimize dispatch (#30) 2026-07-24 17:35:34 -03:00
TeamPermissionOverrideDataServiceTests.cs feat(permissions): expose team member permission overrides (SH-328) 2026-09-16 18:02:02 -03:00
UpliftControllerTests.cs feat(uplifts): expose queue closed flag, attachments, decider, pending exposure (SH-207, SH-208) 2026-09-16 22:48:47 -03:00
UpliftQueueReadTests.cs merge: rebase queue flags onto SH-210 decisions, drop duplicated contract fields 2026-09-17 12:52:13 -03:00
UpliftServiceRefusedTests.cs feat(uplifts): add approval decision actions (SH-210) 2026-09-16 20:11:26 -03:00
UpliftWorkflowTests.cs feat(uplifts): complete SH-101 approval lifecycle 2026-08-11 08:58:19 -03:00
UserControllerTests.cs !fix(users): restrict DeleteUser to Admin [SH-221] 2026-08-11 09:44:52 -03:00
UserDataServiceTests.cs fix(users): compose full Name on user list 2026-08-31 10:22:27 -03:00
UserServiceTests.cs !fix(users): restrict DeleteUser to Admin [SH-221] 2026-08-11 09:44:52 -03:00
VendorCompanyRosterControllerTests.cs feat(vendors): add admin-assigned vendor company Area 2026-09-16 11:34:45 -03:00
VendorCompanyRosterDataServiceTests.cs feat(vendors): add admin-assigned vendor company Area 2026-09-16 11:34:45 -03:00
VendorCompanyRosterServiceTests.cs feat(vendors): add admin-assigned vendor company Area 2026-09-16 11:34:45 -03:00
VendorControllerTests.cs feat(vendors): add admin-assigned vendor company Area 2026-09-16 11:34:45 -03:00
VendorDataServiceTests.cs feat(vendors): add admin-assigned vendor company Area 2026-09-16 11:34:45 -03:00
VendorOperationsControllerTests.cs refactor: enforce backend boundaries and optimize dispatch (#30) 2026-07-24 17:35:34 -03:00
VendorPortalControllerTests.cs feat(uplifts): complete SH-101 approval lifecycle 2026-08-11 08:58:19 -03:00
VendorPortalDocumentTests.cs feat(uplifts): complete SH-101 approval lifecycle 2026-08-11 08:58:19 -03:00
VendorPortalRefuseTests.cs feat(uplifts): complete SH-101 approval lifecycle 2026-08-11 08:58:19 -03:00
VendorServiceTests.cs feat(vendors): add admin-assigned vendor company Area 2026-09-16 11:34:45 -03:00
WorkOrderControllerSearchTests.cs fix(work-orders): apply account scope across create and reads [SH-221] 2026-08-11 10:45:37 -03:00
WorkOrderDataServiceBatchingTests.cs refactor: enforce backend boundaries and optimize dispatch (#30) 2026-07-24 17:35:34 -03:00
WorkOrderGetByIdBindingTests.cs fix(work-orders): bind GetWorkorderById id from the query string (SH-374) 2026-09-16 20:15:30 -03:00
WorkOrderMediaControllerTests.cs feat(work-orders): add authorized media content GET 2026-09-08 11:23:52 -03:00
WorkOrderReconciliationControllerTests.cs fix(work-orders): address procurement review findings 2026-07-27 14:40:17 -03:00
WorkOrderRouteContractTests.cs fix(work-orders): bind GetWorkorderById id from the query string (SH-374) 2026-09-16 20:15:30 -03:00
WorkOrderUpliftControllerTests.cs fix(work-orders): restore NTE on auto-approved revoke and serialize cancel 2026-08-18 17:39:11 -03:00
WorkOrderWebhookRouteContractTests.cs test: prove SH-133 webhook and admin boundaries 2026-07-25 15:45:52 -03:00
WorkOrderWebhookSecretProviderTests.cs fix(work-orders): satisfy producer contract review 2026-07-27 16:33:06 -03:00