static Subscription testReinstantiateSubscription(long SID) { SubscriptionService subservice = new SubscriptionService(); Subscription s = subservice.getUsingID(SID); return(s); }
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); }
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); }