Files
monorepo/LCU.API.Internal.LoanRate/LCU.API.Internal.LoanRateLoadTestingLib/Extensions/Queryables/LoadTestRunInfoInProgressQueryable.cs
T
2026-04-07 14:21:04 -05:00

14 lines
493 B
C#

namespace LCU.API.Internal.LoanRateLoadTestingLib.Extensions.Queryables;
public static class LoadTestRunInfoInProgressQueryable
{
public static IQueryable<LoadTestRunInfo> FilterInProgress(this IQueryable<LoadTestRunInfo> queryable, LoadTestRunInfoFilter loadTestRunInfoFilter)
{
if (!loadTestRunInfoFilter.InProgress)
{
return queryable;
}
return queryable.Where(loadTestRunInfo => !loadTestRunInfo.EndTimeStamp.HasValue);
}
}