using GB5Shared.DTO.Framework.Login; using TCMSDAL.DTO; namespace TCMSBLL.Interfaces; public interface ITCMSTestRunBLL { Task GetTestRunAsync(int testRunId, LoginDTO login, CancellationToken ct); Task> GetTestRunListAsync(int? projectId, int? moduleId, string? runType, string? status, LoginDTO login, CancellationToken ct); Task> GetRunResultsAsync(int testRunId, LoginDTO login, CancellationToken ct); Task> GetDashboardAsync(int? projectId, LoginDTO login, CancellationToken ct); Task SaveTestRunAsync(TCMSTestRunDTO dto, LoginDTO login, CancellationToken ct); Task UpdateTestRunStatusAsync(int testRunId, string status, LoginDTO login, CancellationToken ct); Task UpdateRunResultAsync(TCMSRunResultDTO dto, LoginDTO login, CancellationToken ct); /// /// Processes an inbound Mochawesome JSON webhook from Cypress CI. /// Creates a TestRun + RunResults; updates coverage snapshot. /// Task IngestCypressReportAsync(int projectId, int moduleId, string mochawesomeJson, LoginDTO login, CancellationToken ct); }