コード例 #1
0
ファイル: debug.cs プロジェクト: seasonfall27/FrankFund
        static Subscription testReinstantiateSubscription(long SID)
        {
            SubscriptionService subservice = new SubscriptionService();
            Subscription        s          = subservice.getUsingID(SID);

            return(s);
        }
コード例 #2
0
ファイル: debug.cs プロジェクト: seasonfall27/FrankFund
        static void testDisplaySubscription(long SID)
        {
            SubscriptionService subservice = new SubscriptionService();
            Subscription        s          = subservice.getUsingID(SID);

            Console.WriteLine("\n Retrieving Subscription with SID {0} from the database....", SID);
            Console.WriteLine(subservice.getJSON(s));
            Console.WriteLine("Displaying summary of Subscription with SID {0}....", SID);
            Console.WriteLine(s);
        }
コード例 #3
0
ファイル: debug.cs プロジェクト: seasonfall27/FrankFund
        static void testModifyRewriteSubscription(long SID)
        {
            SubscriptionService subservice = new SubscriptionService();
            Subscription        s          = subservice.getUsingID(SID);

            Console.WriteLine("This is the testModifyRewriteSubscrition test: \n");
            Console.WriteLine(" \nWe will change the purchase amount to 3x the amount. \n");
            //s.setAmount(s.getPurchaseAmount() * 3);
            s.setAmount(50);
            subservice.update(s);
        }