public async Task DeleteAsync(
     [FromRoute] int id,
     CancellationToken ct
     )
 {
     await _internamentoServices.DeleteAsync(id, ct);
 }
Esempio n. 2
0
 public async Task DeleteTestAsync()
 {
     try
     {
         await business.DeleteAsync(
             1,
             CancellationToken.None
             );
     }
     catch
     {
         Assert.IsTrue(false);
     }
     finally
     {
         Assert.IsTrue(true);
     }
 }