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

Unit Tests and Business Logic. #18

Closed
VictorioBerra opened this issue Feb 16, 2018 · 1 comment
Closed

Unit Tests and Business Logic. #18

VictorioBerra opened this issue Feb 16, 2018 · 1 comment

Comments

@VictorioBerra
Copy link

Hello,

I am reading my way through the code and am curious about business logic and unit tests, I see there is an integration test project.

Is business logic supposed to go right in the command handler? Would a larger app separate out the logic from the database code inside the handler?

@adamhathcock
Copy link
Collaborator

If there was real logic to do then yes they should go into different classes that are injected and tested separately.

I chose not to put real unit tests in and only have a couple example integration tests because there isn't any logic other than how data is queried.

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

2 participants