Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create log service and repository layers #657

Open
4 of 6 tasks
eskebab opened this issue Feb 11, 2025 · 0 comments
Open
4 of 6 tasks

Create log service and repository layers #657

eskebab opened this issue Feb 11, 2025 · 0 comments
Assignees

Comments

@eskebab
Copy link
Contributor

eskebab commented Feb 11, 2025

Problem
We need to have a design for communicating and testing database inserts

Solution
We use existing separation principles into a service layer that communicates with a repository layer. The service layer is injected into the api controller. The repository layer is injected into the service layer. The repository layer is concerned with all database communication. The service layer can only communicate with the database through the repository. This abstraction makes it easy to either mock or replace the repository implementation

  • Create two layers: service and repository
  • Repository class for database transactions. Will for now only support insert
  • Domain model class to represent a log entry
  • Service to communicate with repository class from controller
  • Create unit tests for service
  • Create integration tests for repository
@eskebab eskebab changed the title Create log service Create log service and repository layers Feb 12, 2025
@eskebab eskebab self-assigned this Feb 20, 2025
@eskebab eskebab mentioned this issue Feb 24, 2025
5 tasks
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

No branches or pull requests

1 participant