< Summary

Line coverage
0%
Covered lines: 0
Uncovered lines: 76
Coverable lines: 76
Total lines: 104
Line coverage: 0%
Branch coverage
0%
Covered branches: 0
Total branches: 6
Branch coverage: 0%
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
ToDto(...)100%210%
MapToTagGetDTO(...)100%210%
MapToTagGetDTOArray(...)0%620%
MapToAuthorGetDTO(...)100%210%
MapToAuthorGetDTOArray(...)0%620%
MapToWorkIdentifierDTO(...)100%210%
MapToWorkIdentifierDTOArray(...)0%620%

File(s)

/home/runner/work/ProjectRead.ing/ProjectRead.ing/Api/obj/Debug/net11.0/generated/Riok.Mapperly/Riok.Mapperly.MapperGenerator/WorkGetDTOMapper.g.cs

#LineLine coverage
 1// <auto-generated />
 2#nullable enable
 3namespace Api.Works.DTOs
 4{
 5    public static partial class WorkGetDTOMapper
 6    {
 7        [global::System.CodeDom.Compiler.GeneratedCode("Riok.Mapperly", "4.3.1.0")]
 8        public static partial global::Api.Works.DTOs.WorkGetDTO ToDto(global::Api.Works.Models.Work w)
 09        {
 010            var target = new global::Api.Works.DTOs.WorkGetDTO(
 011                w.Id,
 012                w.RowVersion,
 013                w.MetadataAddedAt,
 014                w.MetadataUpdatedAt,
 015                w.Title,
 016                w.Description,
 017                w.WorkPublishedAt,
 018                w.WorkUpdatedAt,
 019                MapToTagGetDTOArray(w.WorkTags),
 020                MapToAuthorGetDTOArray(w.Authors),
 021                MapToWorkIdentifierDTOArray(w.WorkIdentifiers)
 022            );
 023            return target;
 024        }
 25
 26        [global::System.CodeDom.Compiler.GeneratedCode("Riok.Mapperly", "4.3.1.0")]
 27        private static global::Api.Works.DTOs.TagGetDTO MapToTagGetDTO(global::Api.Works.Models.WorkTag source)
 028        {
 029            var target = new global::Api.Works.DTOs.TagGetDTO(
 030                source.Id,
 031                source.RowVersion,
 032                source.MetadataAddedAt,
 033                source.MetadataUpdatedAt,
 034                source.TagType,
 035                source.TagName
 036            );
 037            return target;
 038        }
 39
 40        [global::System.CodeDom.Compiler.GeneratedCode("Riok.Mapperly", "4.3.1.0")]
 41        private static global::Api.Works.DTOs.TagGetDTO[] MapToTagGetDTOArray(global::System.Collections.Generic.IReadOn
 042        {
 043            var target = new global::Api.Works.DTOs.TagGetDTO[source.Count];
 044            var i = 0;
 045            foreach (var item in source)
 046            {
 047                target[i] = MapToTagGetDTO(item);
 048                i++;
 049            }
 050            return target;
 051        }
 52
 53        [global::System.CodeDom.Compiler.GeneratedCode("Riok.Mapperly", "4.3.1.0")]
 54        private static global::Api.Works.DTOs.AuthorGetDTO MapToAuthorGetDTO(global::Api.Works.Models.Author source)
 055        {
 056            var target = new global::Api.Works.DTOs.AuthorGetDTO(
 057                source.Id,
 058                source.RowVersion,
 059                source.MetadataAddedAt,
 060                source.MetadataUpdatedAt,
 061                source.FirstName,
 062                source.LastName,
 063                source.DisplayName,
 064                global::System.Linq.Enumerable.ToArray(source.PenNames)
 065            );
 066            return target;
 067        }
 68
 69        [global::System.CodeDom.Compiler.GeneratedCode("Riok.Mapperly", "4.3.1.0")]
 70        private static global::Api.Works.DTOs.AuthorGetDTO[] MapToAuthorGetDTOArray(global::System.Collections.Generic.I
 071        {
 072            var target = new global::Api.Works.DTOs.AuthorGetDTO[source.Count];
 073            var i = 0;
 074            foreach (var item in source)
 075            {
 076                target[i] = MapToAuthorGetDTO(item);
 077                i++;
 078            }
 079            return target;
 080        }
 81
 82        [global::System.CodeDom.Compiler.GeneratedCode("Riok.Mapperly", "4.3.1.0")]
 83        private static global::Api.Works.DTOs.WorkIdentifierDTO MapToWorkIdentifierDTO(global::Api.Works.Models.WorkIden
 084        {
 085            var target = new global::Api.Works.DTOs.WorkIdentifierDTO();
 086            target.WorkIdentifierType = source.WorkIdentifierType;
 087            target.WorkIdentifierValue = source.WorkIdentifierValue;
 088            return target;
 089        }
 90
 91        [global::System.CodeDom.Compiler.GeneratedCode("Riok.Mapperly", "4.3.1.0")]
 92        private static global::Api.Works.DTOs.WorkIdentifierDTO[] MapToWorkIdentifierDTOArray(global::System.Collections
 093        {
 094            var target = new global::Api.Works.DTOs.WorkIdentifierDTO[source.Count];
 095            var i = 0;
 096            foreach (var item in source)
 097            {
 098                target[i] = MapToWorkIdentifierDTO(item);
 099                i++;
 0100            }
 0101            return target;
 0102        }
 103    }
 104}