shoc-backend/Api.SeaHavenIndustries.Tests
Alexandre Brandizzi 5877f7817f fix(dashboard): bucket trend by calendar ScheduledDate (SH-350)
ScheduledDate is persisted as a midnight calendar value (board create writes
request.ScheduledDate.Value.Date; board patch writes the parsed .Date into a
datetime2 column with no offset). GetTrendAsync treated it as a UTC instant and
converted to America/New_York, so midnight became 19:00/20:00 the previous day
and every board-scheduled work order fell into the prior bucket: a job scheduled
today read as yesterday and overdue, and the Today bucket showed zero.

Bucket by DateOnly.FromDateTime(scheduled.Date) with no conversion, matching
DashboardMetrics and WorkOrderDerivedFields, so Trend and Stats agree on the
same rows. Rewrite the daily and yearly trend tests to assert calendar-date
classification (the removed conversion had encoded the shift into their
expectations) and add a regression test that a midnight-today work order stays
in the Today bucket and is not overdue.
2026-09-16 19:57:09 -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
DashboardServiceTests.cs fix(dashboard): bucket trend by calendar ScheduledDate (SH-350) 2026-09-16 19:57:09 -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): filter sites by state (#117) 2026-09-15 16:32:30 -03:00
LocationDataServiceTests.cs feat(locations): filter sites by state (#117) 2026-09-15 16:32:30 -03:00
LocationServiceTests.cs feat(locations): filter sites by state (#117) 2026-09-15 16:32:30 -03:00
LocationSiteContactsTests.cs fix(locations): preserve contacts when deleting sites 2026-09-15 19:03:54 -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
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
UpliftControllerTests.cs feat(uplifts): complete SH-101 approval lifecycle 2026-08-11 08:58:19 -03:00
UpliftServiceRefusedTests.cs feat(uplifts): complete SH-101 approval lifecycle 2026-08-11 08:58:19 -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 fix: return vendor duplicate name conflict (#92) 2026-08-27 14:55:09 -03:00
VendorCompanyRosterDataServiceTests.cs fix: return vendor duplicate name conflict (#92) 2026-08-27 14:55:09 -03:00
VendorCompanyRosterServiceTests.cs fix(vendors): enforce notes length limit 2026-08-20 18:17:48 -03:00
VendorControllerTests.cs SH-281: group vendor directory by company (#115) 2026-09-15 16:02:44 -03:00
VendorDataServiceTests.cs SH-281: group vendor directory by company (#115) 2026-09-15 16:02:44 -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 SH-281: group vendor directory by company (#115) 2026-09-15 16:02:44 -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
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 test(work-orders): expect media content route 2026-09-08 11:25:26 -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