IConfiguration mock throws NullReferenceException in unit test using Moq
I’m encountering a NullReferenceException
in the SetInterval()
method of my ApiWorker
class when running a unit test. Below are the relevant parts of my code.
I’m encountering a NullReferenceException
in the SetInterval()
method of my ApiWorker
class when running a unit test. Below are the relevant parts of my code.