Skip to content

Moves mocha demo to the examples folder#9534

Merged
PascalSenn merged 1 commit intomainfrom
pse/relocate-mocha-demo
Apr 12, 2026
Merged

Moves mocha demo to the examples folder#9534
PascalSenn merged 1 commit intomainfrom
pse/relocate-mocha-demo

Conversation

@PascalSenn
Copy link
Copy Markdown
Member

@PascalSenn PascalSenn commented Apr 12, 2026

No description provided.

@PascalSenn PascalSenn force-pushed the pse/relocate-mocha-demo branch from 6ed76cf to 33ae79d Compare April 12, 2026 10:51
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates Mocha documentation links and reorganizes the Mocha Demo into the src/Mocha/examples area, adding runnable demo services (Catalog/Billing/Shipping/AppHost) and related scripts, while also modifying a large set of project reference paths across the repo.

Changes:

  • Update Mocha v1 docs to point “Full demo” links at src/Mocha/examples/Demo.
  • Add/expand the Mocha Demo in src/Mocha/examples/Demo (services, contracts, EF contexts, migrations, HTTP scripts, and an Aspire AppHost).
  • Adjust many .csproj ProjectReference paths across multiple components (Mocha/HotChocolate/StrawberryShake/etc.).

Reviewed changes

Copilot reviewed 19 out of 130 changed files in this pull request and generated no comments.

Show a summary per file
File Description
website/src/docs/mocha/v1/transports/rabbitmq.md Update demo link to new examples/Demo path.
website/src/docs/mocha/v1/sagas.md Update demo link to new examples/Demo path.
website/src/docs/mocha/v1/reliability.md Update demo links to new examples/Demo path.
website/src/docs/mocha/v1/quick-start.md Update demo link to new examples/Demo path.
website/src/docs/mocha/v1/observability.md Update demo links to new examples/Demo path.
website/src/docs/mocha/v1/messaging-patterns.md Update demo links to new examples/Demo path.
website/src/docs/mocha/v1/messages.md Update demo link to new examples/Demo path.
website/src/docs/mocha/v1/mediator/pipeline-and-middleware.md Update demo link to new examples/Demo path.
website/src/docs/mocha/v1/index.md Update demo link to new examples/Demo path.
website/src/docs/mocha/v1/handlers-and-consumers.md Update demo link to new examples/Demo path.
src/StrawberryShake/Tooling/test/Configuration.Tests/StrawberryShake.Tools.Configuration.Tests.csproj Change project reference path (currently appears incorrect).
src/StrawberryShake/CodeGeneration/test/CodeGeneration.Tests/StrawberryShake.CodeGeneration.Tests.csproj Change project reference path (currently appears incorrect).
src/StrawberryShake/CodeGeneration/test/CodeGeneration.Razor.Tests/StrawberryShake.CodeGeneration.Razor.Tests.csproj Change project reference path (currently appears incorrect).
src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/StrawberryShake.CodeGeneration.CSharp.Tests.csproj Change project reference path (currently appears incorrect).
src/StrawberryShake/Client/test/Transport.WebSocket.Tests/StrawberryShake.Transport.WebSocket.Tests.csproj Change project reference path (currently appears incorrect).
src/StrawberryShake/Client/test/Transport.InMemory.Tests/StrawberryShake.Transport.InMemory.Tests.csproj Change project reference path (currently appears incorrect).
src/StrawberryShake/Client/test/Transport.Http.Tests/StrawberryShake.Transport.Http.Tests.csproj Change project reference path (currently appears incorrect).
src/StrawberryShake/Client/test/Persistence.SQLite.Tests/StrawberryShake.Persistence.SQLite.Tests.csproj Change project reference path (currently appears incorrect).
src/StrawberryShake/Client/test/Core.Tests/StrawberryShake.Core.Tests.csproj Change project reference path (currently appears incorrect).
src/Nitro/CommandLine/test/CommandLine.Tests/Nitro.CommandLine.Tests.csproj Change project reference path (currently appears incorrect).
src/Mocha/test/Mocha.Transport.RabbitMQ.Tests/Mocha.Transport.RabbitMQ.Tests.csproj Change project reference paths for Mocha projects (currently appears incorrect).
src/Mocha/test/Mocha.Transport.Postgres.Tests/Mocha.Transport.Postgres.Tests.csproj Change project reference paths for Mocha projects (currently appears incorrect).
src/Mocha/test/Mocha.Transport.InMemory.Tests/Mocha.Transport.InMemory.Tests.csproj Change project reference paths for Mocha projects (currently appears incorrect).
src/Mocha/test/Mocha.Tests/Mocha.Tests.csproj Change multiple Mocha project reference paths (currently appears incorrect).
src/Mocha/test/Mocha.TestHelpers/Mocha.TestHelpers.csproj Change Mocha project reference paths (currently appears incorrect).
src/Mocha/test/Mocha.Sagas.Tests/Mocha.Sagas.Tests.csproj Change Mocha project reference path (currently appears incorrect).
src/Mocha/test/Mocha.Sagas.TestHelpers/Mocha.Sagas.TestHelpers.csproj Change Mocha project reference paths (currently appears incorrect).
src/Mocha/test/Mocha.Mediator.Tests/Mocha.Mediator.Tests.csproj Change Mocha mediator project reference paths (currently appears incorrect).
src/Mocha/test/Mocha.Hosting.Tests/Mocha.Hosting.Tests.csproj Change Mocha hosting project reference paths (currently appears incorrect).
src/Mocha/test/Mocha.EntityFrameworkCore.Tests/Mocha.EntityFrameworkCore.Tests.csproj Change Mocha EF project reference paths (currently appears incorrect).
src/Mocha/test/Mocha.EntityFrameworkCore.Postgres.Tests/Mocha.EntityFrameworkCore.Postgres.Tests.csproj Change multiple Mocha EF/Postgres project reference paths (currently appears incorrect).
src/Mocha/test/Mocha.Analyzers.Tests/Mocha.Analyzers.Tests.csproj Change Mocha analyzer project reference paths (currently appears incorrect).
src/Mocha/test/Demo.Catalog.Tests/Demo.Catalog.Tests.csproj Change Demo.Catalog project reference path (currently appears incorrect for moved demo).
src/Mocha/examples/PostgresTransport/PostgresTransport.ShippingService/PostgresTransport.ShippingService.csproj Update Mocha project reference paths for examples layout.
src/Mocha/examples/PostgresTransport/PostgresTransport.OrderService/PostgresTransport.OrderService.csproj Update Mocha project reference paths for examples layout.
src/Mocha/examples/PostgresTransport/PostgresTransport.NotificationService/PostgresTransport.NotificationService.csproj Update Mocha project reference paths for examples layout.
src/Mocha/examples/PostgresTransport/PostgresTransport.Contracts/PostgresTransport.Contracts.csproj Update Mocha project reference paths for examples layout.
src/Mocha/examples/ExceptionPolicies/ExceptionPolicies.csproj Update Mocha project reference paths for examples layout.
src/Mocha/examples/Demo/README.md Refresh demo README and describe .http scripts.
src/Mocha/examples/Demo/http/config.http Add shared HTTP variables for demo scripts.
src/Mocha/examples/Demo/http/05-high-volume-batch.http Add batch/high-volume demo script.
src/Mocha/examples/Demo/http/02-quick-refund.http Add quick-refund saga demo script.
src/Mocha/examples/Demo/http/01-place-single-order.http Add end-to-end single-order flow demo script.
src/Mocha/examples/Demo/Directory.Packages.props Add central package versions for Demo folder.
src/Mocha/examples/Demo/Directory.Build.props Add Demo-wide build defaults (TFM, pack settings, etc.).
src/Mocha/examples/Demo/Demo.slnx Add a dedicated solution definition for the demo.
src/Mocha/examples/Demo/Demo.Shipping/Queries/ShipmentQueries.cs Add mediator queries for shipments.
src/Mocha/examples/Demo/Demo.Shipping/Queries/ReturnShipmentQueries.cs Add mediator queries for return shipments.
src/Mocha/examples/Demo/Demo.Shipping/Properties/launchSettings.json Add launch settings for Shipping service.
src/Mocha/examples/Demo/Demo.Shipping/Program.cs Add Shipping service app wiring (EF, RabbitMQ, bus, endpoints).
src/Mocha/examples/Demo/Demo.Shipping/Migrations/.editorconfig Mark migrations as generated.
src/Mocha/examples/Demo/Demo.Shipping/Handlers/PaymentCompletedEventHandler.cs Add handler to create shipments on payment completion.
src/Mocha/examples/Demo/Demo.Shipping/Handlers/GetShipmentStatusRequestHandler.cs Add request/reply handler for shipment status.
src/Mocha/examples/Demo/Demo.Shipping/Handlers/CreateReturnLabelCommandHandler.cs Add request/reply handler to create return labels.
src/Mocha/examples/Demo/Demo.Shipping/Entities/ShipmentItem.cs Add EF entity for shipment items.
src/Mocha/examples/Demo/Demo.Shipping/Entities/Shipment.cs Add EF entity and enum for shipments.
src/Mocha/examples/Demo/Demo.Shipping/Entities/ReturnShipment.cs Add EF entity and enum for return shipments.
src/Mocha/examples/Demo/Demo.Shipping/Demo.Shipping.csproj Update project references for demo/service build.
src/Mocha/examples/Demo/Demo.Shipping/Data/ShippingDbContext.cs Add Shipping EF model + inbox/outbox configuration.
src/Mocha/examples/Demo/Demo.Shipping/Commands/ShipShipmentCommand.cs Add command to ship a shipment + publish event.
src/Mocha/examples/Demo/Demo.Shipping/Commands/ReceiveReturnPackageCommand.cs Add command to mark return received + publish event.
src/Mocha/examples/Demo/Demo.Shipping/appsettings.json Add default Shipping app settings.
src/Mocha/examples/Demo/Demo.Shipping/appsettings.Development.json Add Shipping dev settings.
src/Mocha/examples/Demo/Demo.ServiceDefaults/Demo.ServiceDefaults.csproj Reformat ServiceDefaults project file (no functional change evident).
src/Mocha/examples/Demo/Demo.Contracts/Saga/ReturnProcessingResponse.cs Add return-processing saga response model.
src/Mocha/examples/Demo/Demo.Contracts/Saga/RequestQuickRefundRequest.cs Add quick-refund saga request contract.
src/Mocha/examples/Demo/Demo.Contracts/Saga/QuickRefundResponse.cs Add quick-refund saga response model.
src/Mocha/examples/Demo/Demo.Contracts/Saga/InitiateReturnRequest.cs Add initiate-return saga/request contract.
src/Mocha/examples/Demo/Demo.Contracts/Requests/GetShipmentStatusResponse.cs Add shipping status response contract.
src/Mocha/examples/Demo/Demo.Contracts/Requests/GetShipmentStatusRequest.cs Add shipping status request contract.
src/Mocha/examples/Demo/Demo.Contracts/Requests/GetProductResponse.cs Add product details response contract.
src/Mocha/examples/Demo/Demo.Contracts/Requests/GetProductRequest.cs Add product details request contract.
src/Mocha/examples/Demo/Demo.Contracts/Events/ShipmentShippedEvent.cs Add shipment shipped event contract.
src/Mocha/examples/Demo/Demo.Contracts/Events/ShipmentCreatedEvent.cs Add shipment created event contract.
src/Mocha/examples/Demo/Demo.Contracts/Events/ReturnPackageReceivedEvent.cs Add return-package-received event contract.
src/Mocha/examples/Demo/Demo.Contracts/Events/PaymentReminderEvent.cs Add scheduled payment reminder event contract.
src/Mocha/examples/Demo/Demo.Contracts/Events/PaymentFailedEvent.cs Add payment failed event contract.
src/Mocha/examples/Demo/Demo.Contracts/Events/PaymentCompletedEvent.cs Add payment completed event contract.
src/Mocha/examples/Demo/Demo.Contracts/Events/OrderPlacedEvent.cs Add order placed event contract.
src/Mocha/examples/Demo/Demo.Contracts/Events/BulkOrderEvent.cs Add bulk-order event contract for batch demos.
src/Mocha/examples/Demo/Demo.Contracts/Demo.Contracts.csproj Update Mocha project reference for demo layout.
src/Mocha/examples/Demo/Demo.Contracts/Commands/RestockInventoryCommand.cs Add restock request/reply contract.
src/Mocha/examples/Demo/Demo.Contracts/Commands/ReserveInventoryCommand.cs Add reserve inventory command contract.
src/Mocha/examples/Demo/Demo.Contracts/Commands/ProcessRefundCommand.cs Add full refund request/reply contract.
src/Mocha/examples/Demo/Demo.Contracts/Commands/ProcessPartialRefundCommand.cs Add partial refund request/reply contract.
src/Mocha/examples/Demo/Demo.Contracts/Commands/InspectReturnCommand.cs Add inspect return request/reply contract.
src/Mocha/examples/Demo/Demo.Contracts/Commands/CreateReturnLabelCommand.cs Add create return label request/reply contract.
src/Mocha/examples/Demo/Demo.Catalog/Sagas/ReturnProcessingSaga.cs Add return-processing saga workflow.
src/Mocha/examples/Demo/Demo.Catalog/Sagas/RefundSagaState.cs Add shared saga state + command factories.
src/Mocha/examples/Demo/Demo.Catalog/Sagas/QuickRefundSaga.cs Add quick-refund saga workflow + response.
src/Mocha/examples/Demo/Demo.Catalog/Queries/ProductQueries.cs Add mediator queries for products.
src/Mocha/examples/Demo/Demo.Catalog/Queries/OrderQueries.cs Add mediator queries for orders.
src/Mocha/examples/Demo/Demo.Catalog/Queries/CategoryQueries.cs Add mediator queries for categories.
src/Mocha/examples/Demo/Demo.Catalog/Properties/launchSettings.json Add launch settings for Catalog service.
src/Mocha/examples/Demo/Demo.Catalog/Migrations/.editorconfig Mark migrations as generated.
src/Mocha/examples/Demo/Demo.Catalog/Handlers/ShipmentCreatedEventHandler.cs Update order status on shipment created event.
src/Mocha/examples/Demo/Demo.Catalog/Handlers/RestockInventoryCommandHandler.cs Implement inventory restock request/reply.
src/Mocha/examples/Demo/Demo.Catalog/Handlers/ReserveInventoryCommandHandler.cs Implement inventory reservation handler.
src/Mocha/examples/Demo/Demo.Catalog/Handlers/PaymentCompletedEventHandler.cs Update order status on payment completed event.
src/Mocha/examples/Demo/Demo.Catalog/Handlers/InspectReturnCommandHandler.cs Implement return inspection request/reply (randomized).
src/Mocha/examples/Demo/Demo.Catalog/Handlers/GetProductRequestHandler.cs Implement product details request/reply.
src/Mocha/examples/Demo/Demo.Catalog/Entities/Product.cs Add Catalog product EF entity.
src/Mocha/examples/Demo/Demo.Catalog/Entities/OrderRecord.cs Add order EF entity and status enum.
src/Mocha/examples/Demo/Demo.Catalog/Entities/Category.cs Add category EF entity.
src/Mocha/examples/Demo/Demo.Catalog/Demo.Catalog.csproj Update project references for demo layout.
src/Mocha/examples/Demo/Demo.Catalog/Data/CatalogDbContext.cs Add Catalog EF model + seed data + inbox/outbox/sagas config.
src/Mocha/examples/Demo/Demo.Catalog/Commands/RequestQuickRefundCommand.cs Add API command that triggers quick-refund saga.
src/Mocha/examples/Demo/Demo.Catalog/Commands/PlaceOrderCommand.cs Add place-order command that publishes OrderPlacedEvent.
src/Mocha/examples/Demo/Demo.Catalog/Commands/PlaceBulkOrderCommand.cs Add bulk publish command for batch demos.
src/Mocha/examples/Demo/Demo.Catalog/Commands/InitiateReturnCommand.cs Minor formatting change (blank line) in return initiation.
src/Mocha/examples/Demo/Demo.Catalog/appsettings.json Add default Catalog app settings.
src/Mocha/examples/Demo/Demo.Catalog/appsettings.Development.json Add Catalog dev settings.
src/Mocha/examples/Demo/Demo.Billing/Queries/RevenueSummaryQueries.cs Add billing queries for revenue summaries.
src/Mocha/examples/Demo/Demo.Billing/Queries/RefundQueries.cs Add billing queries for refunds.
src/Mocha/examples/Demo/Demo.Billing/Queries/PaymentQueries.cs Add billing queries for payments.
src/Mocha/examples/Demo/Demo.Billing/Queries/InvoiceQueries.cs Add billing queries for invoices.
src/Mocha/examples/Demo/Demo.Billing/Properties/launchSettings.json Add launch settings for Billing service.
src/Mocha/examples/Demo/Demo.Billing/Program.cs Add Billing service app wiring (EF, RabbitMQ, bus, endpoints, scheduling).
src/Mocha/examples/Demo/Demo.Billing/Migrations/20260328113825_AddScheduledMessages.cs Add EF migration for scheduled messages table.
src/Mocha/examples/Demo/Demo.Billing/Migrations/.editorconfig Mark migrations as generated.
src/Mocha/examples/Demo/Demo.Billing/Handlers/ShipmentShippedEventHandler.cs Add handler to log shipment shipped events.
src/Mocha/examples/Demo/Demo.Billing/Handlers/ProcessRefundCommandHandler.cs Add full refund request/reply handler.
src/Mocha/examples/Demo/Demo.Billing/Handlers/ProcessPartialRefundCommandHandler.cs Add partial refund request/reply handler.
src/Mocha/examples/Demo/Demo.Billing/Handlers/PaymentReminderEventHandler.cs Add handler for scheduled payment reminder events.
src/Mocha/examples/Demo/Demo.Billing/Handlers/OrderPlacedEventHandler.cs Add handler to create invoice/payment + schedule reminder + publish payment event.
src/Mocha/examples/Demo/Demo.Billing/Handlers/OrderPlacedBatchHandler.cs Add batch handler to aggregate revenue summaries.
src/Mocha/examples/Demo/Demo.Billing/Handlers/BulkOrderBatchHandler.cs Add bulk batch handler to aggregate revenue summaries.
src/Mocha/examples/Demo/Demo.Billing/Entities/RevenueSummary.cs Add revenue summary EF entity.
src/Mocha/examples/Demo/Demo.Billing/Entities/Refund.cs Add refund EF entity and enums.
src/Mocha/examples/Demo/Demo.Billing/Entities/Payment.cs Add payment EF entity and enum.
src/Mocha/examples/Demo/Demo.Billing/Entities/Invoice.cs Add invoice EF entity and enum.
src/Mocha/examples/Demo/Demo.Billing/Demo.Billing.csproj Update project references for demo layout.
src/Mocha/examples/Demo/Demo.Billing/Data/BillingDbContext.cs Add Billing EF model + inbox/outbox/scheduling config.
src/Mocha/examples/Demo/Demo.Billing/Commands/ProcessPaymentCommand.cs Minor formatting change (blank line) in payment processing.
src/Mocha/examples/Demo/Demo.Billing/appsettings.json Add default Billing app settings.
src/Mocha/examples/Demo/Demo.Billing/appsettings.Development.json Add Billing dev settings.
src/Mocha/examples/Demo/Demo.AppHost/Properties/launchSettings.json Add AppHost launch settings for Aspire.
src/Mocha/examples/Demo/Demo.AppHost/Demo.AppHost.csproj Add Aspire AppHost project file.
src/Mocha/examples/Demo/Demo.AppHost/appsettings.json Add AppHost settings.
src/Mocha/examples/Demo/Demo.AppHost/appsettings.Development.json Add AppHost dev settings.
src/Mocha/examples/Demo/Demo.AppHost/AppHost.cs Reformat AppHost app definition (no functional change evident).
src/Mocha/benchmarks/Mocha.Mediator.Benchmarks/Mocha.Mediator.Benchmarks.csproj Change project reference paths (currently appears incorrect).
src/HotChocolate/Utilities/test/Utilities.Tests/HotChocolate.Utilities.Tests.csproj Change project reference paths (currently appears incorrect).
src/HotChocolate/Utilities/test/Utilities.Introspection.Tests/HotChocolate.Utilities.Introspection.Tests.csproj Change project reference path (currently appears incorrect).
src/HotChocolate/Language/test/Language.Tests/HotChocolate.Language.Tests.csproj Change project reference path (currently appears incorrect).
src/GreenDonut/test/GreenDonut.Tests/GreenDonut.Tests.csproj Change project reference paths (currently appears incorrect).
src/CookieCrumble/test/CookieCrumble.Tests/CookieCrumble.Tests.csproj Change project reference paths (currently appears incorrect).
src/All.slnx Remove Mocha Demo projects from the all-up solution definition.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Copy Markdown
Member Author

@PascalSenn PascalSenn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@PascalSenn PascalSenn merged commit 15aeafa into main Apr 12, 2026
130 checks passed
@PascalSenn PascalSenn deleted the pse/relocate-mocha-demo branch April 12, 2026 10:59
@codecov
Copy link
Copy Markdown

codecov bot commented Apr 12, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 0.00%. Comparing base (6a3b7a3) to head (33ae79d).
⚠️ Report is 1101 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #9534       +/-   ##
==========================================
- Coverage   74.16%       0   -74.17%     
==========================================
  Files        2677       0     -2677     
  Lines      140790       0   -140790     
  Branches    16371       0    -16371     
==========================================
- Hits       104421       0   -104421     
+ Misses      30774       0    -30774     
+ Partials     5595       0     -5595     
Flag Coverage Δ
unittests ?

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants