< Summary

Information
Class: LGDXRobotCloud.Utilities.Helpers.PaginationHelper
Assembly: LGDXRobotCloud.Utilities
File(s): /builds/yukaitung/lgdxrobot2-cloud/LGDXRobotCloud.Utilities/Helpers/PaginationMetadata.cs
Line coverage
100%
Covered lines: 5
Uncovered lines: 0
Coverable lines: 5
Total lines: 9
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_ItemCount()100%11100%
get_PageCount()100%11100%
get_PageSize()100%11100%
get_CurrentPage()100%11100%

File(s)

/builds/yukaitung/lgdxrobot2-cloud/LGDXRobotCloud.Utilities/Helpers/PaginationMetadata.cs

#LineLine coverage
 1namespace LGDXRobotCloud.Utilities.Helpers;
 2
 13public class PaginationHelper(int itemCount, int currentPage, int pageSize)
 4{
 15  public int ItemCount { get; set; } = itemCount;
 16  public int PageCount { get; set; } = (int)Math.Ceiling(itemCount / (double)pageSize);
 17  public int PageSize { get; set; } = pageSize;
 18  public int CurrentPage { get; set; } = currentPage;
 9}