< Summary

Information
Class: Elsa.Api.Client.Shared.Models.VersionedEntity
Assembly: Elsa.Api.Client
File(s): /home/runner/work/elsa-core/elsa-core/src/clients/Elsa.Api.Client/Shared/Models/VersionedEntity.cs
Line coverage
100%
Covered lines: 4
Uncovered lines: 0
Coverable lines: 4
Total lines: 27
Line coverage: 100%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
get_CreatedAt()100%11100%
get_Version()100%11100%
get_IsLatest()100%11100%
get_IsPublished()100%11100%

File(s)

/home/runner/work/elsa-core/elsa-core/src/clients/Elsa.Api.Client/Shared/Models/VersionedEntity.cs

#LineLine coverage
 1namespace Elsa.Api.Client.Shared.Models;
 2
 3/// <summary>
 4/// Represents an entity that is versioned.
 5/// </summary>
 6public abstract class VersionedEntity : Entity
 7{
 8    /// <summary>
 9    /// Gets or sets the date and time this entity was created.
 10    /// </summary>
 111    public DateTimeOffset CreatedAt { get; set; }
 12
 13    /// <summary>
 14    /// Gets or sets the version of this entity.
 15    /// </summary>
 216    public int Version { get; set; } = 1;
 17
 18    /// <summary>
 19    /// Gets or sets whether this entity is the latest version.
 20    /// </summary>
 121    public bool IsLatest { get; set; }
 22
 23    /// <summary>
 24    /// Gets or sets whether this entity is published.
 25    /// </summary>
 126    public bool IsPublished { get; set; }
 27}