Beispiel #1
0
        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");
        }
Beispiel #2
0
        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);
        }
Beispiel #3
0
 public void Remove()
 {
     conekta.Plan plan = new conekta.Plan().find("gold-plan1991");
     plan.delete();
 }
Beispiel #4
0
        public void Find()
        {
            conekta.Plan plan = new conekta.Plan().find("gold-plan1991");

            Assert.AreEqual(plan.id, "gold-plan1991");
        }