public void GetAllReceiptsByCafeId_Successful() { this.CreateAndGetReceipt(); var cafe = _context.Cafes.First(); var receipts = _receiptOperations.GetAllReceiptsByCafeId(cafe.Id).Result; Assert.IsTrue(receipts != null && receipts.Count > 0); }
public async Task <IActionResult> GetAllReceipts(long id) { var result = await _receiptOperations.GetAllReceiptsByCafeId(id); return(Ok(result)); }