I want to save the states of various databases for a reliable Unit-Testing.
SQL-Databases are easy, I just make a dump-file and can recreate my database from scratch every time I run my tests. My question is, can I do the same with an active directory? Can I recreate the state of an active directory with a script or do I have to save the database as an instance (for example a text file) and just use it as a "fake" active directory (just an Object and not a Connection)
What approaches are useful?