Exemplo n.º 1
0
 /// <summary>
 /// Used for test mocking only
 /// </summary>
 /// <param name="user"></param>
 public void SetCurrentUser(RegistryCurrentUser user)
 {
     currentUser = user;
 }
Exemplo n.º 2
0
 public static RegistryCurrentUser OpenRegistryCurrentUser(string key)
 {
     return(currentUser ?? (currentUser = new RegistryCurrentUser(key)));
 }