Open Closed

Test Cases in Application #10362

smartlayer created


I am creating test cases for my application.

A method in my service contains a hangfire job to send an email to the user, but when I am trying to use this method in one of my test case in Test project I get below error:-

Can you please let me know what is the issue


1 Answer(s)
  • 0
    musa.demir created
    Support Team

    Hi @smartlayer

    You should disable background jobs in your test cases since background jobs work asynchronously.