Beispiel #1
0
 public async Task Http_404_should_throw_EntityNotFoundException()
 {
     var notExistingInvoiceId = Guid.Parse("85733EDC-958B-4C80-9E49-8942B85D0156");
     await Assert.ThrowsAsync <EntityNotFoundException>(async() =>
     {
         await inboxInvoiceClient.Get(notExistingInvoiceId);
     });
 }
 [HttpGet("{id}")] //f201ba2e-881f-4798-a715-d6090a28d7b2
 public async Task <ActionResult <InboxInvoiceGetModel> > Get(Guid id)
 {
     return(await inboxInvoiceClient.Get(id));
 }