Esempio n. 1
0
        public async void InvoicesManager_GetInvoiceAsync_NotNull()
        {
            var sut = new InvoicesManager(_mockLog.Object, _mqPublisher.Object, _invoiceRepository.Object, _invoiceEntityService.Object);

            var retVal = await sut.GetInvoiceAsync("TEST");

            Assert.NotNull(retVal);
        }
Esempio n. 2
0
 public async Task <ActionResult <string> > PostInvoice(Guid id)
 {
     try
     {
         return(new ActionResult <string>(await InvoicesManager.GetInvoiceAsync(this.AuthenticationProvider, id)));
     }
     catch (Exception ex)
     {
         return(BadRequest(ex.Message));
     }
 }