Skip to content

Integration test for jobs #2269

Answered by lahma
fikretasma asked this question in Q&A
Discussion options

You must be logged in to vote

You would test it like any other code you've written. var job = new MyJob(); await job.Execute(context); // checks for outcome that it's desired . You can think this like if you job's Execute method's only line of code would be new MyService().DoSomething(); - how would you test your MyService?

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by fikretasma
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants