# gookian/testfastreport architecture

> Architecture diagram of the GitHub repository gookian/testfastreport, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-14). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/gookian/testfastreport
- Repository: https://github.com/gookian/testfastreport

## Overview

TestFastReport is a small ASP.NET Core application that exposes FastReport documents through both an MVC page and a controller endpoint. Each controller loads the same report definition, assigns parameter values, and returns a different kind of result: a view or an HTTP response. The sampled sources establish startup routing and these flows; the README provides no further product details, and the second report file’s use is not shown.

Main entry points: [`TestFastReport/Controllers/ReportController.cs`](https://github.com/gookian/testfastreport/blob/master/TestFastReport/Controllers/ReportController.cs) (Report page controller), [`TestFastReport/Controllers/ReportDataController.cs`](https://github.com/gookian/testfastreport/blob/master/TestFastReport/Controllers/ReportDataController.cs) (Report data controller), [`TestFastReport/Program.cs`](https://github.com/gookian/testfastreport/blob/master/TestFastReport/Program.cs) (ASP.NET Core app), [`TestFastReport/Reports/LIGHT_REPORTfrx.frx`](https://github.com/gookian/testfastreport/blob/master/TestFastReport/Reports/LIGHT_REPORTfrx.frx) (Report definition)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Web application"]
  node_app["ASP.NET Core app<br/>[Program.cs]"]
  node_page_controller["Report page controller"]
  node_data_controller["Report data controller"]
  node_http_result["HTTP response"]
end

subgraph group_reporting["Report generation"]
  node_fastreport["FastReport WebReport"]
  node_template["Report definition"]
  node_alternate_template["Alternate report definition<br/>[LIGHT_REPORT.frx]"]
end

subgraph group_ui["Presentation"]
  node_report_view["Report page view<br/>[Index.cshtml]"]
end

node_user(("Browser user"))

node_app -->|"routes requests"| node_page_controller
node_app -->|"routes requests"| node_data_controller
node_page_controller -->|"creates and configures"| node_fastreport
node_page_controller -->|"loads template"| node_template
node_page_controller -->|"returns view"| node_report_view
node_data_controller -->|"creates and configures"| node_fastreport
node_data_controller -->|"loads template"| node_template
node_data_controller -->|"returns report"| node_http_result
node_user -.->|"requests page or data"| node_app

click node_app "https://github.com/gookian/testfastreport/blob/master/TestFastReport/Program.cs"
click node_page_controller "https://github.com/gookian/testfastreport/blob/master/TestFastReport/Controllers/ReportController.cs"
click node_data_controller "https://github.com/gookian/testfastreport/blob/master/TestFastReport/Controllers/ReportDataController.cs"
click node_template "https://github.com/gookian/testfastreport/blob/master/TestFastReport/Reports/LIGHT_REPORTfrx.frx"
click node_alternate_template "https://github.com/gookian/testfastreport/blob/master/TestFastReport/Reports/LIGHT_REPORT.frx"
click node_report_view "https://github.com/gookian/testfastreport/blob/master/TestFastReport/Views/Report/Index.cshtml"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_app,node_page_controller,node_data_controller,node_http_result,node_user toneBlue
class node_fastreport,node_template,node_alternate_template toneAmber
class node_report_view toneMint
```

## Components

### Web application

- [ASP.NET Core app](https://github.com/gookian/testfastreport/blob/master/TestFastReport/Program.cs): `TestFastReport/Program.cs`
- [Report page controller](https://github.com/gookian/testfastreport/blob/master/TestFastReport/Controllers/ReportController.cs): `TestFastReport/Controllers/ReportController.cs`
- [Report data controller](https://github.com/gookian/testfastreport/blob/master/TestFastReport/Controllers/ReportDataController.cs): `TestFastReport/Controllers/ReportDataController.cs`
- **HTTP response**

### Report generation

- **FastReport WebReport**
- [Report definition](https://github.com/gookian/testfastreport/blob/master/TestFastReport/Reports/LIGHT_REPORTfrx.frx): `TestFastReport/Reports/LIGHT_REPORTfrx.frx`
- [Alternate report definition](https://github.com/gookian/testfastreport/blob/master/TestFastReport/Reports/LIGHT_REPORT.frx): `TestFastReport/Reports/LIGHT_REPORT.frx`

### Presentation

- [Report page view](https://github.com/gookian/testfastreport/blob/master/TestFastReport/Views/Report/Index.cshtml): `TestFastReport/Views/Report/Index.cshtml`

### Other components

- **Browser user**

## Connections

- ASP.NET Core app → Report page controller: routes requests (evidence: `TestFastReport/Program.cs`)
- ASP.NET Core app → Report data controller: routes requests (evidence: `TestFastReport/Program.cs`)
- Report page controller → FastReport WebReport: creates and configures (evidence: `TestFastReport/Controllers/ReportController.cs`)
- Report page controller → Report definition: loads template (evidence: `TestFastReport/Controllers/ReportController.cs`)
- Report page controller → Report page view: returns view (evidence: `TestFastReport/Controllers/ReportController.cs`)
- Report data controller → FastReport WebReport: creates and configures (evidence: `TestFastReport/Controllers/ReportDataController.cs`)
- Report data controller → Report definition: loads template (evidence: `TestFastReport/Controllers/ReportDataController.cs`)
- Report data controller → HTTP response: returns report (evidence: `TestFastReport/Controllers/ReportDataController.cs`)
- Browser user → ASP.NET Core app: requests page or data
