| Class: | Api.Works.DTOs.AuthorGetDTO |
|---|---|
| Assembly: | Api |
| File(s): | /home/runner/work/ProjectRead.ing/ProjectRead.ing/Api/Works/DTOs/AuthorDTO.cs |
| Covered lines: | 0 |
|---|---|
| Uncovered lines: | 11 |
| Coverable lines: | 11 |
| Total lines: | 27 |
| Line coverage: | 0% |
| 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 |
|---|---|---|---|---|
| .ctor(...) | 100% | 2 | 1 | 0% |
| # | 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.Works.Models; | |||
6 | | |||
7 | using Riok.Mapperly.Abstractions; | |||
8 | | |||
9 | namespace Api.Works.DTOs; | |||
10 | | |||
| 0 | 11 | public record AuthorGetDTO( | ||
| 0 | 12 | Guid Id, | ||
| 0 | 13 | int RowVersion, | ||
| 0 | 14 | NodaTime.Instant MetadataAddedAt, | ||
| 0 | 15 | NodaTime.Instant MetadataUpdatedAt, | ||
| 0 | 16 | | ||
| 0 | 17 | string? FirstName, | ||
| 0 | 18 | string? LastName, | ||
| 0 | 19 | string DisplayName, | ||
| 0 | 20 | string[] PenNames | ||
| 0 | 21 | ) : IEntityMetadata; | ||
22 | | |||
23 | [Mapper] | |||
24 | public static partial class AuthorGetDTOMapper | |||
25 | { | |||
26 | public static partial IQueryable<AuthorGetDTO> ProjectToDTO(IQueryable<Author> q); | |||
27 | } |