< Summary

Information
Class: FAU.Logica.DTOs.PagedResult<T>
Assembly: FAU.Logica
File(s): /home/runner/work/Sistema.Liquidacion.BE/Sistema.Liquidacion.BE/FAU.Logica/DTOs/PagedResult.cs
Line coverage
100%
Covered lines: 7
Uncovered lines: 0
Coverable lines: 7
Total lines: 13
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_Items()100%11100%
get_Page()100%11100%
get_PageSize()100%11100%
get_TotalCount()100%11100%
get_TotalPages()100%11100%
get_HasPreviousPage()100%11100%
get_HasNextPage()100%11100%

File(s)

/home/runner/work/Sistema.Liquidacion.BE/Sistema.Liquidacion.BE/FAU.Logica/DTOs/PagedResult.cs

#LineLine coverage
 1namespace FAU.Logica.DTOs;
 2
 3public class PagedResult<T>
 4{
 385    public IEnumerable<T> Items { get; set; } = new List<T>();
 326    public int Page { get; set; }
 327    public int PageSize { get; set; }
 308    public int TotalCount { get; set; }
 89    public int TotalPages => (int)Math.Ceiling(TotalCount / (double)PageSize);
 410    public bool HasPreviousPage => Page > 1;
 411    public bool HasNextPage => Page < TotalPages;
 12}
 13