< Summary

Information
Class: ArturRios.Mediator.Query.BaseQuery
Assembly: ArturRios.Mediator
File(s): D:\Repositories\dotnet-mediator\src\Query\BaseQuery.cs
Line coverage
100%
Covered lines: 2
Uncovered lines: 0
Coverable lines: 2
Total lines: 25
Line coverage: 100%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage
100%
Covered methods: 2
Fully covered methods: 2
Total methods: 2
Method coverage: 100%
Full method coverage: 100%

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
get_PageNumber()100%11100%
get_PageSize()100%11100%

File(s)

D:\Repositories\dotnet-mediator\src\Query\BaseQuery.cs

#LineLine coverage
 1namespace ArturRios.Mediator.Query;
 2
 3/// <summary>
 4/// Base type for all queries. A query represents a read-only request for data and is
 5/// dispatched through the <see cref="QueryMediator"/> to its corresponding handler.
 6/// </summary>
 7/// <remarks>
 8/// Derive from this type to define a query, exposing any filter criteria as properties.
 9/// The <see cref="PageNumber"/> and <see cref="PageSize"/> properties are used by
 10/// paginated query handlers and ignored by non-paginated ones.
 11/// </remarks>
 12public abstract class BaseQuery
 13{
 14    /// <summary>
 15    /// The 1-based page number to retrieve when the query is executed as a paginated query.
 16    /// Defaults to <c>1</c>.
 17    /// </summary>
 1618    public int PageNumber { get; set; } = 1;
 19
 20    /// <summary>
 21    /// The maximum number of items per page when the query is executed as a paginated query.
 22    /// Defaults to <c>100</c>.
 23    /// </summary>
 1024    public int PageSize { get; set; } = 100;
 25}

Methods/Properties

get_PageNumber()
get_PageSize()