| Class: | Api.Database.Setup |
|---|---|
| Assembly: | Api |
| File(s): | /home/runner/work/ProjectRead.ing/ProjectRead.ing/Api/Database/Setup.cs |
| Covered lines: | 4 |
|---|---|
| Uncovered lines: | 0 |
| Coverable lines: | 4 |
| Total lines: | 17 |
| Line coverage: | 100% |
| Covered branches: | 0 |
|---|---|
| Total branches: | 0 |
| Branch coverage: | N/A |
Feature is only available for sponsors
Upgrade to PRO version| Method | Branch coverage | Crap Score | Cyclomatic complexity | Line coverage |
|---|---|---|---|---|
| RegisterServices(...) | 100% | 1 | 1 | 100% |
| # | Line | Line coverage | ||
|---|---|---|---|---|
1 | // SPDX-FileCopyrightText: 2026 Alper Çelik <[email protected]> | |||
2 | // | |||
3 | // SPDX-License-Identifier: AGPL-3.0-or-later | |||
4 | | |||
5 | using Api.Database.Utils; | |||
6 | | |||
7 | namespace Api.Database; | |||
8 | | |||
9 | public static class Setup | |||
10 | { | |||
11 | public static void RegisterServices(IServiceCollection services) | |||
| 1 | 12 | { | ||
| 1 | 13 | services.AddScoped<IEFTransactionDIAccessorService, EFTransactionDIAccessorService>(); | ||
| 1 | 14 | services.AddDbContext<PGContext>(); | ||
15 | | |||
| 1 | 16 | } | ||
17 | } |