< Summary

Information
Class: Fluorite.Strainer.Models.Sorting.SortExpression
Assembly: Fluorite.Strainer
File(s): /builds/fluorite/strainer/src/Strainer/Models/Sorting/SortExpression.cs
Line coverage
100%
Covered lines: 5
Uncovered lines: 0
Coverable lines: 5
Total lines: 34
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
.ctor()100%11100%
get_IsDefault()100%11100%
get_IsDescending()100%11100%
get_IsSubsequent()100%11100%

File(s)

/builds/fluorite/strainer/src/Strainer/Models/Sorting/SortExpression.cs

#LineLine coverage
 1namespace Fluorite.Strainer.Models.Sorting;
 2
 3/// <summary>
 4/// Provides information about expression used for sorting.
 5/// </summary>
 6public class SortExpression : ISortExpression
 7{
 8    /// <summary>
 9    /// Initializes a new instance of the <see cref="SortExpression"/> class.
 10    /// </summary>
 1311    public SortExpression()
 12    {
 13
 1314    }
 15
 16    /// <summary>
 17    /// Gets or sets a value indicating whether related
 18    /// expression should be used as a default one.
 19    /// </summary>
 1620    public bool IsDefault { get; set; }
 21
 22    /// <summary>
 23    /// Gets or sets a value indicating whether related
 24    /// expression should be used for ordering in descending way.
 25    /// </summary>
 2426    public bool IsDescending { get; set; }
 27
 28    /// <summary>
 29    /// Gets or sets a value indicating whether related
 30    /// expression should be used for subsequent ordering e.g. using
 31    /// ThenBy() or ThenByDescending().
 32    /// </summary>
 2233    public bool IsSubsequent { get; set; }
 34}