Unit tests for code accessing ActiveDirectory

前端 未结 2 1198
梦毁少年i
梦毁少年i 2021-02-20 04:49

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 DirectorySear

2条回答
  •  感动是毒
    2021-02-20 05:18

    Is there no other possibility to use a leightweight directory server (ldap) like java developers do with Apache DS (http://directory.apache.org) in .NET?!

    This would be a nice alternative.

提交回复
热议问题