public void Constructor_should_read_a_password()
 {
     using (new IpfsAdapter(_passwordManager, FileSystem, _logger))
     {
         _passwordManager.ReceivedWithAnyArgs(1)
         .RetrieveOrPromptAndAddPasswordToRegistry(PasswordRegistryTypes.IpfsPassword);
     }
 }
Ejemplo n.º 2
0
 private void The_store_should_have_asked_for_a_password_on_creation_and_loading()
 {
     _passwordManager.ReceivedWithAnyArgs(2).RetrieveOrPromptAndAddPasswordToRegistry(default);