Skip to content

Clean Architecture: simplify the EventTicketing sample to follow the step-by-step article - #2239

Merged
vladimir-pecanac-main merged 2 commits into
mainfrom
seo/109602-clean-architecture-redo
Sep 24, 2026
Merged

vladimir-pecanac-main merged 2 commits into
mainfrom
seo/109602-clean-architecture-redo

Conversation

@vladimir-pecanac-main

Copy link
Copy Markdown
Collaborator

One entity, one command, one query and one repository, built with the article's own steps on .NET 10.

  • Domain: Event, EventErrors, Result
  • Application: IEventRepository, ReserveTickets, GetEventAvailability, DependencyInjection
  • Infrastructure: TicketingDbContext (seed data with HasData), EventRepository, DependencyInjection
  • Api: EventEndpoints, ResultExtensions, Program, EventTicketing.Api.http (launch profile on port 5000)
  • Tests: 4 unit tests and 2 architecture tests (NetArchTest.Rules)

Removed: IUnitOfWork, the read repository, DatabaseSeeder, DomainException, OpenAPI and the feature folders.

…step-by-step article

One entity, one command, one query and one repository, built with the article's own steps on .NET 10.

- Domain: Event, EventErrors, Result
- Application: IEventRepository, ReserveTickets, GetEventAvailability, DependencyInjection
- Infrastructure: TicketingDbContext (seed data with HasData), EventRepository, DependencyInjection
- Api: EventEndpoints, ResultExtensions, Program, EventTicketing.Api.http (launch profile on port 5000)
- Tests: 4 unit tests and 2 architecture tests (NetArchTest.Rules)

Removed: IUnitOfWork, the read repository, DatabaseSeeder, DomainException, OpenAPI and the feature folders.
@vladimir-pecanac-main
vladimir-pecanac-main merged commit 90a2f7c into main Sep 24, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant