What's the best way to unit test an application accessing the ActiveDirectory and/or mock the dependencies to the AD?
All the required types such as DirectorySearcher
and DirectoryEntry
don't appear to be easily mockable.
We've got methods like FindByUserName()
and would like to (unit) test them.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With