shoc-backend/SeaHavenIndustries.Tests
Cursor Agent 93dda60425
fix(uplifts): serialize evidence photo count with the work-order lock
Overlapping evidence uploads could both read nine photos and both save.
The count and the insert now run under ExecuteWorkOrderMutationAsync, the
same gate the dispatcher media path uses.

Co-authored-by: Arthur Bassi <bassi-arthurr@users.noreply.github.com>
2026-10-05 15:01:59 +00:00
..
Fixtures fix(work-orders): satisfy producer contract review 2026-07-27 16:33:06 -03:00
CompletionDocTemplateServiceTests.cs fix(completion-templates): let PUT clear workOrderType with an explicit null 2026-09-25 11:40:49 -03:00
ConcurrencyExceptionFilterTests.cs feat(phase-0): finalize foundation — authorize, concurrency filter, isolated build 2026-07-02 09:19:28 -03:00
LifecycleStatusMapperTests.cs fix(dashboard): count unassigned legacy rows with no lifecycle status (SH-392) 2026-09-25 03:34:24 -03:00
PasswordResetAbuseLimitsTests.cs test(auth): give the reset test host's helpers names of their own 2026-09-25 17:51:26 -03:00
PasswordResetFlowTests.cs fix(auth): cap reset abuse per account, key code hashes, send reset email off the request path 2026-09-25 13:00:03 -03:00
PasswordResetRaceTests.cs Merge branch 'fix/ab/sh-403-reset-code-hardening' into fix/ab/sh-403-reset-hardening-2 2026-09-25 16:48:57 -03:00
PasswordResetTestHost.cs test(auth): give the reset test host's helpers names of their own 2026-09-25 17:52:14 -03:00
Phase4SearchIndexesSqlServerTests.cs fix(test): guard LocalDB migration check by platform 2026-07-24 13:10:50 -03:00
SeaHavenIndustries.Tests.csproj fix(work-orders): satisfy producer contract review 2026-07-27 16:33:06 -03:00
SessionRevocationTests.cs fix(auth): end earlier sessions when a user's role or account changes 2026-09-25 19:26:25 -03:00
SessionTestHost.cs Merge remote-tracking branch 'origin/main' into fix/ab/sh-403-reset-hardening-2 2026-09-25 19:49:24 -03:00
SH138SiteContactsSqlServerTests.cs Align the second test project with the site data-service contract 2026-09-25 11:25:13 -03:00
SH221LocationAccountScopeSqlServerTests.cs fix(tests): create ephemeral LocalDB database before migration apply 2026-08-26 10:20:14 -03:00
SH249TradesVocabularyMigrationTests.cs fix: align vendor trades with confirmed taxonomy 2026-08-20 11:44:07 -03:00
SH303ServicesRegistryMigrationTests.cs feat(work-orders): link service selections to registry 2026-09-16 18:02:57 -03:00
ShocWebhookVectorTests.cs fix(work-orders): satisfy producer contract review 2026-07-27 16:33:06 -03:00
SyncFieldMergePolicyTests.cs refactor: enforce backend boundaries and optimize dispatch (#30) 2026-07-24 17:35:34 -03:00
TeamMemberCreateTransactionTests.cs feat(team-members): invite registration with emailed code confirmation (SH-385) 2026-09-25 11:49:10 -03:00
TeamMemberInviteLifecycleTests.cs fix(team-members): do not report an invite email for a deactivated member 2026-09-25 13:13:50 -03:00
TeamMemberInviteRegistrationTests.cs fix(team-members): answer invalid_invite when send-code finds the invite closed 2026-09-25 16:40:54 -03:00
TeamMemberInviteTestHost.cs test(team-members): register reset email delivery in the invite test host 2026-09-25 18:10:10 -03:00
TestFileStoragePort.cs feat(work-orders): authorize WO media content reads 2026-09-08 11:19:41 -03:00
UpliftAmountPerCreationPathTests.cs merge(main): keep uplift evidence on the current work-order routes 2026-09-28 15:56:45 -03:00
UpliftDataServiceTransactionTests.cs fix: distinguish uplift request key conflicts 2026-09-23 01:39:16 -03:00
UpliftDecisionAuditRelationalTests.cs test(uplifts): cover escalation audit on a dispatch without an owning work order 2026-09-24 23:37:58 -03:00
UpliftQueueReadRelationalTests.cs feat(uplifts): expose dispatcher, technician and schedule on queue read (SH-209) 2026-09-18 12:49:25 -03:00
VideoDurationProbeTests.cs fix(media): enforce the 90-second video limit on the server 2026-09-24 21:38:00 -03:00
WorkOrderAccountScopeTests.cs Align the second test project with the site data-service contract 2026-09-25 11:25:13 -03:00
WorkOrderAccountTestHelpers.cs merge(main): keep uplift evidence on the current work-order routes 2026-09-28 15:56:45 -03:00
WorkOrderAddonCutoffTests.cs feat(work-orders): persist IsAddOn frozen at create (SH-126) 2026-08-13 13:30:09 -03:00
WorkOrderAdvancedSearchDateRangeTests.cs fix(board-search): keep undated rows for clients that omit includeDateless (SH-391) 2026-09-25 01:41:49 -03:00
WorkOrderAuditServiceTests.cs refactor: enforce backend boundaries and optimize dispatch (#30) 2026-07-24 17:35:34 -03:00
WorkOrderBoardCancelServiceTests.cs fix(uplifts): open evidence by work-order access and keep every file 2026-09-28 16:24:26 -03:00
WorkOrderBoardConcurrencyTests.cs fix(work-orders): cancelling from the board cancels the pending uplift 2026-09-25 18:37:56 -03:00
WorkOrderBoardCreateRelationalTests.cs test(uplifts): prove board-create dispatch ownership persists relationally (SH-393) 2026-09-24 21:45:00 -03:00
WorkOrderBoardCreateServiceTests.cs fix(workorders): persist manual POC override with audit and site-follow (SH-379) 2026-09-18 14:30:54 -03:00
WorkOrderBoardCreateSyncLockTests.cs fix(workorders): persist manual POC override with audit and site-follow (SH-379) 2026-09-18 14:30:54 -03:00
WorkOrderBoardDispatchAssignmentTests.cs fix(work-orders): omit inactive primary vendor from board rows (SH-183) 2026-08-20 13:22:12 -03:00
WorkOrderBoardFieldMutationsTests.cs feat(work-orders): run schedule status side-effects on board field mutations 2026-09-08 16:22:11 -03:00
WorkOrderBoardInactiveVendorTests.cs fix(work-orders): omit inactive primary vendor from board rows (SH-183) 2026-08-20 13:22:12 -03:00
WorkOrderBoardMutationRulesTests.cs feat(work-orders): derive Scheduled from date without assignee 2026-09-08 16:19:50 -03:00
WorkOrderBoardPatchCancelUpliftTests.cs Cancel pending uplifts when the CRM cancels a work order 2026-09-25 18:48:44 -03:00
WorkOrderBoardPatchLifecycleRulesTests.cs fix(work-orders): cancelling from the board cancels the pending uplift 2026-09-25 18:37:56 -03:00
WorkOrderBoardSearchTests.cs feat(work-orders): add Overdue work order type 2026-09-25 10:57:34 -03:00
WorkOrderBoardServiceTests.cs test(uplifts): board summary and notification delta use the per-path amount 2026-09-25 02:36:17 -03:00
WorkOrderBoardUpdateServiceTests.cs fix(work-orders): cancelling from the board cancels the pending uplift 2026-09-25 18:37:56 -03:00
WorkOrderCompletedSelectiveLockTests.cs fix(work-orders): cancelling from the board cancels the pending uplift 2026-09-25 18:37:56 -03:00
WorkOrderCompletionFreezeTests.cs fix(work-orders): cancelling from the board cancels the pending uplift 2026-09-25 18:37:56 -03:00
WorkOrderCrmCancelUpliftTests.cs Serialize sync cancels and vendor uplift requests on the work order lock 2026-09-25 19:37:08 -03:00
WorkOrderDerivedFieldsTests.cs feat(work-orders): apply schedule lifecycle promote and demote 2026-09-08 16:21:14 -03:00
WorkOrderFieldLockServiceTests.cs refactor: enforce backend boundaries and optimize dispatch (#30) 2026-07-24 17:35:34 -03:00
WorkOrderMediaConcurrencyRelationalTests.cs fix(media): serialize SH-116 media counts under the work-order lock and serve HEIC as image/heic 2026-09-24 22:56:21 -03:00
WorkOrderMigrationDiscoveryTests.cs fix(work-orders): keep location account server-owned and forward create cancellation 2026-08-26 10:00:02 -03:00
WorkOrderNumberNormalizerTests.cs fix(work-orders): keep SH placeholder WO numbers and block downgrades (#123) 2026-09-16 15:01:10 -03:00
WorkOrderOverdueTypeTests.cs fix(work-orders): cancelling from the board cancels the pending uplift 2026-09-25 18:37:56 -03:00
WorkOrderPhase6Tests.cs fix(work-orders): cancelling from the board cancels the pending uplift 2026-09-25 18:37:56 -03:00
WorkOrderPhase7CoexistenceTests.cs fix(workorders): persist manual POC override with audit and site-follow (SH-379) 2026-09-18 14:30:54 -03:00
WorkOrderPocServiceTests.cs fix(work-orders): cancelling from the board cancels the pending uplift 2026-09-25 18:37:56 -03:00
WorkOrderReconciliationAuthTests.cs test: prove SH-133 webhook and admin boundaries 2026-07-25 15:45:52 -03:00
WorkOrderReconciliationTests.cs Cancel pending uplifts when the CRM cancels a work order 2026-09-25 18:48:44 -03:00
WorkOrderTypeMapperTests.cs feat(work-orders): add Overdue work order type 2026-09-25 10:57:34 -03:00
WorkOrderUpliftDispatchOwnershipTests.cs merge(main): keep uplift evidence on the current work-order routes 2026-09-28 15:56:45 -03:00
WorkOrderUpliftEvidenceServiceTests.cs fix(uplifts): serialize evidence photo count with the work-order lock 2026-10-05 15:01:59 +00:00
WorkOrderUpliftLiveStatusRelationalTests.cs fix(work-orders): count only live uplifts for Has uplift and the Uplift column 2026-09-25 17:51:47 -03:00
WorkOrderUpliftLiveStatusTests.cs fix(work-orders): count only live uplifts for Has uplift and the Uplift column 2026-09-25 17:51:47 -03:00
WorkOrderUpliftServiceTests.cs fix(uplifts): resolve evidence without a primary dispatch 2026-10-01 14:55:07 +00:00
WorkOrderWebhookTests.cs test(work-orders): fix sync/webhook/recon fixtures for AccountId stamp [SH-221] 2026-08-11 10:54:23 -03:00
WorkOrderWeekRolledTests.cs fix(work-orders): restore SH-185 Schedule On Past Due and assert IsAddOn audit 2026-08-17 10:36:03 -03:00