public void Create() { conekta.Plan plan = new conekta.Plan().create(@"{ ""id"":""gold-plan1991"", ""name"":""Gold Plan 1991"", ""amount"":10000 }"); Assert.AreEqual(plan.id.GetType().ToString(), "System.String"); }
public void Edit() { conekta.Plan plan = new conekta.Plan().find("gold-plan1991"); plan.update(@"{ ""name"":""Gold Plan 500"", ""amount"":55555 }"); Assert.AreEqual(plan.name, "Gold Plan 500"); Assert.AreEqual(plan.amount, 55555); }
public void Remove() { conekta.Plan plan = new conekta.Plan().find("gold-plan1991"); plan.delete(); }
public void Find() { conekta.Plan plan = new conekta.Plan().find("gold-plan1991"); Assert.AreEqual(plan.id, "gold-plan1991"); }