예제 #1
0
 public async Task Http_404_shold_throw_EntityNotFoundException_Cancel_Metot()
 {
     var notExistingInvoiceId = Guid.Parse("85733EDC-958B-4C80-9E49-8942B85D0156");
     await Assert.ThrowsAsync <EntityNotFoundException>(async() =>
     {
         await earchiceInvoiceClient.Cancel(new Guid[] { notExistingInvoiceId });
     });
 }
예제 #2
0
 [HttpGet("cancelinvoice")] //f201ba2e-881f-4798-a715-d6090a28d7b2
 public async Task <ActionResult> Get()
 {
     Guid[] model = new Guid[] {
         new Guid("f201ba2e-881f-4798-a715-d6090a28d7b2"),
         new Guid("f201ba2e-881f-4798-b623-d6090a28d7b2")
     };
     return(Ok(await earchiveClient.Cancel(model)));
 }