private static Plan UpdatingPlan(Plan plan) { Console.Write("Updating plan"); plan.Name = "Altered plan (R$ 59,99)"; plan.TrialDays = 1; plan.Update(); Console.WriteLine(plan.Id > 0 ? " - Success" : " - Fail"); return plan; }
private static Plan CreatingPlan() { var obj = new Plan { Amount = 9999, //99,99 Days = 90, Name = "Plano teste Renan (R$ 49,99)", Color = "#F05", Charges = 4, Installments = 3 }; Console.Write("Creating plan"); obj.Create(); Console.WriteLine(obj.Id > 0 ? " - Success" : " - Fail"); return obj; }