Skip to content

feat: add Empleado CRUD module with tests and security validation#20

Closed
edelomeza wants to merge 5 commits into
mainfrom
CrudEmpleado
Closed

feat: add Empleado CRUD module with tests and security validation#20
edelomeza wants to merge 5 commits into
mainfrom
CrudEmpleado

Conversation

@edelomeza

Copy link
Copy Markdown
Owner

Se agrego crud de empleado y catalogo tipo empleado

@github-actions

github-actions Bot commented Jul 6, 2026

Copy link
Copy Markdown

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

Comment thread tests/WebDevSecOps.UnitTests/Pages/Empleados/UpdateTests.cs Fixed

serviceMock
.Setup(x => x.GetEmpleadosAsync(It.IsAny<int>(), It.IsAny<int>(), It.IsAny<CancellationToken>()))
.ReturnsAsync((PaginatedResponse<Empleado>?)null);

serviceMock
.Setup(x => x.GetEmpleadosAsync(It.IsAny<int>(), It.IsAny<int>(), It.IsAny<CancellationToken>()))
.ReturnsAsync((PaginatedResponse<Empleado>?)null);

serviceMock
.Setup(x => x.GetEmpleadoByIdAsync(It.IsAny<int>(), It.IsAny<CancellationToken>()))
.ReturnsAsync((Empleado?)null);
Comment thread tests/WebDevSecOps.UnitTests/Pages/Empleados/CreateTests.cs Fixed
Comment on lines +267 to +271
catch (Exception ex)
{
_logger.LogError(ex, "Unexpected error updating empleado {Id}", id);
return OperationResult.Fail("Error inesperado. Intente nuevamente.");
}
Comment on lines +209 to +213
catch (Exception ex)
{
_logger.LogError(ex, "Unexpected error creating empleado");
return OperationResult.Fail("Error inesperado. Intente nuevamente.");
}
Comment on lines +155 to +159
catch (Exception ex)
{
_logger.LogError(ex, "Unexpected error fetching empleado {Id}", id);
return null;
}
Comment on lines +109 to +113
catch (Exception ex)
{
_logger.LogError(ex, "Unexpected error searching empleados");
return null;
}
Comment on lines +58 to +62
catch (Exception ex)
{
_logger.LogError(ex, "Unexpected error fetching empleados");
return null;
}
@edelomeza

Copy link
Copy Markdown
Owner Author

se realizaron mejoras en una preubas y se concluyo

@edelomeza edelomeza closed this Jul 6, 2026
@edelomeza
edelomeza deleted the CrudEmpleado branch July 15, 2026 03:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants