private String setUp() { receiptController = new ReceiptController(); ReceiptController.processOrders(orders_json); ReceiptController.processPayments(payments_json); ReceiptController.processPrices(prices_json); return(receiptController.GetReceipts()); }
static void Main(string[] args) { ReceiptController receiptController = new ReceiptController(); receiptController.setUp(); // function that reads the files then calls the controller endpoints String jsonResult = receiptController.GetReceipts(); // function to get the expected result Console.WriteLine(jsonResult); }