Commit Graph

2 Commits

Author SHA1 Message Date
Denis Urs Rudolph 2f76fd7858 Fix multiple test failures
- Update TestDataFactory.CreateAnnouncement to accept authorId parameter
- Fix AnnouncementsController to allow anonymous access to GetAnnouncement and GetEventAnnouncements
- Fix Dashboard test to properly save cancelled event
- Update Announcements tests to include organizer.Id as authorId

Status: 71 passed, 7 failed, 2 skipped
Remaining failures are in AnnouncementsControllerTests related to Update operations
2026-04-06 21:07:57 +02:00
Denis Urs Rudolph f4e2c28869 Add Announcements and Dashboard controller tests
- Create AnnouncementsControllerTests with 16 test cases
  - Announcement creation, retrieval, updates, deletion
  - Published vs unpublished visibility
  - Authorization checks
  - My announcements endpoint

- Create DashboardControllerTests with 8 test cases
  - Organizer dashboard statistics
  - Participant dashboard data
  - Event capacity tracking
  - Revenue calculations

Current test status: 68 passed, 10 failed, 2 skipped
- Some failures due to test data setup (Author relationships)
- Test structure is complete and comprehensive
2026-04-06 12:04:25 +02:00