|
7 | 7 | [](https://codecov.io/gh/nanotaboada/Dotnet.Samples.AspNetCore.WebApi) |
8 | 8 | [](https://www.codefactor.io/repository/github/nanotaboada/Dotnet.Samples.AspNetCore.WebApi) |
9 | 9 | [](https://opensource.org/licenses/MIT) |
| 10 | + |
10 | 11 |  |
11 | 12 |  |
12 | 13 |  |
@@ -82,15 +83,23 @@ src/Dotnet.Samples.AspNetCore.WebApi/ |
82 | 83 | βββ Validators/ # FluentValidation rules |
83 | 84 | β βββ PlayerRequestModelValidator.cs |
84 | 85 | βββ Configurations/ # Swagger, rate limiting config |
| 86 | +βββ Enums/ # Domain enumerations (e.g. Position) |
85 | 87 | βββ Extensions/ # Service registration extensions |
| 88 | +βββ Middlewares/ # Custom ASP.NET Core middleware |
86 | 89 | βββ Utilities/ # Helper classes |
87 | 90 | βββ Migrations/ # EF Core migrations |
88 | 91 | βββ storage/ # Pre-seeded SQLite database |
89 | 92 |
|
90 | 93 | test/Dotnet.Samples.AspNetCore.WebApi.Tests/ |
91 | | -βββ Unit/ # Unit tests with xUnit |
92 | | - βββ PlayerControllerTests.cs |
93 | | - βββ PlayerServiceTests.cs |
| 94 | +βββ Unit/ # Unit tests with xUnit |
| 95 | +β βββ PlayerControllerTests.cs |
| 96 | +β βββ PlayerServiceTests.cs |
| 97 | +β βββ PlayerValidatorTests.cs |
| 98 | +βββ Utilities/ # Shared test helpers |
| 99 | + βββ DatabaseFakes.cs |
| 100 | + βββ PlayerFakes.cs |
| 101 | + βββ PlayerMocks.cs |
| 102 | + βββ PlayerStubs.cs |
94 | 103 | ``` |
95 | 104 |
|
96 | 105 | ## Architecture |
@@ -421,6 +430,7 @@ STORAGE_PATH=/storage/players-sqlite3.db |
421 | 430 | | `dotnet build` | Build the solution | |
422 | 431 | | `dotnet test` | Run all tests | |
423 | 432 | | `dotnet test --collect:"XPlat Code Coverage"` | Run tests with coverage report | |
| 433 | +| `dotnet csharpier .` | Format source code | |
424 | 434 | | `dotnet ef migrations add <Name>` | Create a new migration | |
425 | 435 | | `dotnet ef database update` | Apply migrations | |
426 | 436 | | `./scripts/run-migrations-and-copy-database.sh` | Regenerate database with seed data | |
|
0 commit comments