Exemple #1
0
 public IActionResult Post(KeyVaultSecretDeleteEvent @event)
 {
     try
     {
         return(Ok(_keyVaultSecretDeleter.DeleteSecretFromVault(@event.Name, @event.PurgeImmediately)));
     }
     catch (Exception e)
     {
         return(NotFound(e.Message));
     }
 }
Exemple #2
0
 public void DeleteSecretFromVaultWithout_ReturnsString()
 {
     _keyVaultSecretDeleter.DeleteSecretFromVault(_secretName, false).Should()
     .Be("The secret's delete operation has successfully started.");
 }