The shared application for the Xebia workshop "Copilot from Zero to Control".
Kitty Hawk Air Tours flies sightseeing tours over North Carolina's Outer Banks. The dispatch console lists the fleet, shows the flight schedule, and lets a dispatcher assign aircraft to flights.
- .NET 10, ASP.NET Core Razor Pages and Minimal APIs
- EF Core with SQLite
- xUnit for unit and integration tests, NUnit and Playwright for browser tests
GitHub Codespaces: create a codespace on main. The container builds the solution and installs the Playwright browser in the background.
Local clone: install the .NET SDK version listed in global.json. The browser tests also need PowerShell 7 (pwsh).
dotnet build
dotnet run --project src/FlightDispatch.WebOpen http://localhost:5080. In a codespace, use the forwarded port 5080 from the Ports tab.
| Menu | Shows |
|---|---|
| Fleet | The aircraft |
| Flights | The flight schedule with assigned aircraft |
| Assign | A form for assigning an aircraft to a flight |
The app stores its data in src/FlightDispatch.Web/App_Data/flightdispatch.db. To start over with the seed data, stop the app and run:
dotnet run --project src/FlightDispatch.Web -- --reset-databasedotnet test tests/FlightDispatch.UnitTests
dotnet test tests/FlightDispatch.IntegrationTestsThe browser tests start their own copy of the app and need Chromium, which a local clone installs once after dotnet build:
pwsh tests/FlightDispatch.PlaywrightTests/bin/Debug/net10.0/playwright.ps1 install chromium
dotnet test tests/FlightDispatch.PlaywrightTests| Path | Contents |
|---|---|
src/FlightDispatch.Web |
The dispatch console: Razor Pages and Minimal APIs over EF Core and SQLite |
tests/FlightDispatch.UnitTests |
xUnit tests for the services |
tests/FlightDispatch.IntegrationTests |
xUnit tests that run the API and pages in memory |
tests/FlightDispatch.PlaywrightTests |
NUnit and Playwright browser tests |
.devcontainer/ |
The GitHub Codespaces environment |
.github/workflows/ |
CI and the Copilot cloud agent setup steps |
This repository is proprietary and for use in authorized Xebia training only. See LICENSE.