Beispiel #1
0
 private String setUp()
 {
     receiptController = new ReceiptController();
     ReceiptController.processOrders(orders_json);
     ReceiptController.processPayments(payments_json);
     ReceiptController.processPrices(prices_json);
     return(receiptController.GetReceipts());
 }
Beispiel #2
0
        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);
        }