How idhldeveloper/idhldevelopertest works
Purpose and runtime
A .NET 10 Blazor Server/Web App coding exercise that presents Disney character data from the Disney Characters API. The application is server-hosted, with interactive Razor components rendering character listing, search, pagination, and intended character-detail navigation.
Core startup is IDHLDeveloperTest/Program.cs; project dependencies and target framework are defined in IDHLDeveloperTest/IDHLDeveloperTest.csproj.
Application composition and routing
The root UI shell is assembled through IDHLDeveloperTest/App.razor, which hosts routing via IDHLDeveloperTest/Routes.razor. Shared page chrome belongs in IDHLDeveloperTest/Components/MainLayout.razor.
Primary routes are expected to resolve to:
• Character-list landing page: IDHLDeveloperTest/Pages/Index.razor
• Fallback route: IDHLDeveloperTest/Pages/NotFound.razor
The current tree has no dedicated character-details page, despite the requirement to navigate from a character name and show films, TV shows, and video games; that is a missing architectural endpoint.
UI stages
IDHLDeveloperTest/Pages/Index.razor should own page-level list state: current page, search term, loading/error state, and selected navigation context. It delegates tabular rendering to IDHLDeveloperTest/Components/CharactersTable.razor.
The table component is the presentation boundary for ID, name link, image, and pagination/search controls or their callbacks. It should not directly own API transport concerns; it consumes character data and reports user intent upward.
Static styling and image-related browser assets are served from IDHLDeveloperTest/wwwroot/css/site.css and IDHLDeveloperTest/wwwroot/image.
External API boundary
IDHLDeveloperTest/Services/IClientService.cs defines the application-facing contract for Disney API access, while IDHLDeveloperTest/Services/ClientService.cs implements HTTP communication with the external Disney Characters API (https://disneyapi.dev/docs).
Program.cs is the dependency-injection and HTTP-client registration boundary. Components should depend on IClientService, keeping external endpoint details, response handling, and query construction isolated in ClientService.
Data model boundary
API payloads are represented by:
• IDHLDeveloperTest/Models/Character.cs: an individual Disney character, including identifier, name, image URL, and media lists.
• IDHLDeveloperTest/Models/CharacterList.cs: the paged/list response wrapper.
The expected flow is Disney API response → ClientService deserialization → CharacterList/Character models → Index state → CharactersTable rendering. Pagination metadata and name filtering should travel through the service contract rather than requiring the UI to fetch and filter an unbounded dataset.
Character navigation flow
A name rendered by Components/CharactersTable.razor should link using the character ID supplied by Models/Character.cs. The router in Routes.razor should dispatch that URL to a dedicated page, which obtains the selected character through IClientService and renders its films, TV shows, and video games.
This separates list-query state from single-character detail retrieval and makes direct URLs/bookmarks viable.
Infrastructure and operational concerns
Configuration is available in IDHLDeveloperTest/appsettings.json and IDHLDeveloperTest/appsettings.Development.json; API base URLs or related client settings belong there rather than in components. Development launch behavior is defined by IDHLDeveloperTest/Properties/launchSettings.json.
There is no persistence layer, authentication system, background worker, or separate frontend deployment indicated by the repository. The material external dependency is the Disney API, so API failures, missing images, and empty media arrays are the primary integration failure boundaries.
Components 16
Server Host
- Program startup · Registers routing, HTTP client, and application services.
IDHLDeveloperTest/Program.cs - Project definition
IDHLDeveloperTest/IDHLDeveloperTest.csproj - API configuration · Holds API base URL or client settings.
IDHLDeveloperTest/appsettings.json
Razor UI
- App shell
IDHLDeveloperTest/App.razor - Router · Dispatches list, fallback, and intended detail URLs.
IDHLDeveloperTest/Routes.razor - Main layout
IDHLDeveloperTest/Components/MainLayout.razor - Character list page · Owns query, pagination, loading, error, and navigation state.
IDHLDeveloperTest/Pages/Index.razor - Characters table · Renders rows and reports search, paging, and name-link intent.
IDHLDeveloperTest/Components/CharactersTable.razor - Character detail page · Required endpoint for direct ID navigation and media rendering.
- Not found page
IDHLDeveloperTest/Pages/NotFound.razor - Browser assets
IDHLDeveloperTest/wwwroot/css/site.css
API Access & Models
- Character API contract
IDHLDeveloperTest/Services/IClientService.cs - Disney API client · Builds queries and deserializes Disney API responses.
IDHLDeveloperTest/Services/ClientService.cs - Paged character result · Carries characters and pagination metadata.
IDHLDeveloperTest/Models/CharacterList.cs - Character · Contains ID, name, image URL, and media lists.
IDHLDeveloperTest/Models/Character.cs
Other components
- Disney Characters API · Remote character search, paging, and detail source.
Connections 21
- Project definition → Program startup: builds
- API configuration → Program startup: configures
- Program startup → App shell: hosts
- Program startup → Disney API client: registers HTTP client
- Program startup → Character API contract: registers DI
- App shell → Router: hosts
- Router → Main layout: applies
- Router → Character list page: list route
- Router → Character detail page: detail route
- Router → Not found page: fallback
- Character list page → Characters table: supplies list state
- Characters table → Character list page: search, page, name intent
- Characters table → Character detail page: character ID link
- Character list page → Character API contract: queries page and filter
- Character detail page → Character API contract: gets character by ID
- Character API contract → Disney API client: implemented by
- Disney API client → Disney Characters API: HTTP requests
- Disney API client → Paged character result: deserializes list
- Disney API client → Character: deserializes detail
- Paged character result → Character: contains
- Browser assets → Main layout: styles UI