< Summary

Information
Class: RoleRadar.Application.Reading.Models.ApplicationReadModel
Assembly: RoleRadar.Application
File(s): /home/runner/work/roleradar/roleradar/src/RoleRadar.Application/Reading/Models/ApplicationReadModel.cs
Line coverage
94%
Covered lines: 17
Uncovered lines: 1
Coverable lines: 18
Total lines: 33
Line coverage: 94.4%
Branch coverage
50%
Covered branches: 1
Total branches: 2
Branch coverage: 50%
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
get_Id()100%11100%
get_PostingId()100%11100%
get_CompanyId()100%11100%
get_PostingTitle()100%11100%
get_CompanyName()100%11100%
get_Status()100%11100%
get_AppliedAt()100%11100%
get_HasInterview()100%11100%
get_FirstResponseAt()100%11100%
get_LastEventAt()100%11100%
get_HasOffer()100%11100%
get_HasRejection()100%11100%
get_RejectedBeforeInterview()100%11100%
get_AgeInDays()50%22100%
set_AgeInDays(...)100%210%
get_OwnerId()100%11100%
get_HasFirstResponse()100%11100%
get_HasLastEvent()100%11100%

File(s)

/home/runner/work/roleradar/roleradar/src/RoleRadar.Application/Reading/Models/ApplicationReadModel.cs

#LineLine coverage
 1namespace RoleRadar.Application.Reading.Models;
 2
 3public sealed class ApplicationReadModel
 4{
 2118285    public Guid Id { get; init; }
 96146    public Guid PostingId { get; init; }
 96147    public Guid CompanyId { get; init; }
 2155368    public string PostingTitle { get; init; } = string.Empty;
 2155609    public string CompanyName { get; init; } = string.Empty;
 21595010    public string Status { get; init; } = string.Empty;
 81832611    public DateTimeOffset AppliedAt { get; init; }
 961412    public bool HasInterview { get; init; }
 41005613    public DateTimeOffset? FirstResponseAt { get; init; }
 961414    public DateTimeOffset? LastEventAt { get; init; }
 15
 16    /// <summary>Any offer event. Derived at the repository choke point (ADR 0031).</summary>
 652417    public bool HasOffer { get; init; }
 18
 19    /// <summary>Any rejected event. Derived at the repository choke point (ADR 0031).</summary>
 652420    public bool HasRejection { get; init; }
 21
 22    /// <summary>A rejection with no interview dated strictly before it; false without a rejection (ADR 0031).</summary>
 652423    public bool RejectedBeforeInterview { get; init; }
 24    public int AgeInDays
 25    {
 412226        get => AppliedAt == default ? 0 : Math.Max(0, (int)(DateTimeOffset.UtcNow.Date - AppliedAt.UtcDateTime.Date).Tot
 027        init { }
 28    }
 29
 21182830    internal string OwnerId { get; init; } = string.Empty;
 590631    internal bool HasFirstResponse { get; init; }
 590632    internal bool HasLastEvent { get; init; }
 33}