示例#1
0
        static Receipt testReinstantiateReceipt(long RID)
        {
            ReceiptService rs = new ReceiptService();
            Receipt        r  = rs.getUsingID(RID);

            return(r);
        }
示例#2
0
        static void testModifyRewriteReceipt(long RID)
        {
            ReceiptService rs = new ReceiptService();
            Receipt        r  = rs.getUsingID(10);

            Console.WriteLine(r);
            r.setNote("This purchase is for a purchase!");
            Console.WriteLine("\nAfter change: \n" + r);
            rs.update(r);
        }