Exemplo n.º 1
0
 public void SetUp()
 {
     //  When running a test, use the in-memory registry. Let the ComAdmin APIs know to use this instance instead
     //  of the default WindowsRegistry.
     _registry = new InMemoryRegistry();
     ComAdmin.SetRegistryImplementation(_registry);
 }
Exemplo n.º 2
0
 public void TearDown()
 {
     //  Reset the service registry to the standard Windows Registry implementation.
     ComAdmin.SetRegistryImplementation(new WindowsRegistry());
 }