Ejemplo n.º 1
0
        public void CreateSubscriptionPlanThenDelete()
        {
            string testPlanID = "TestPlanForUnitTestDeleteMe";
            var    plan       = new Plan()
            {
                planId   = testPlanID,
                planName = "Test plan for Unit Test. Should be deleted.",
                interval = 1, intervalType = IntervalType.Weekly, intervalCount = 1,
                amount   = 100, currency = "EUR"
            };
            var plan1 = CreatePlan(plan);

            Assert.That(plan1.planId, Is.EqualTo(testPlanID));
            var plan2 = api.GetPlan(testPlanID);

            Assert.That(plan1.planId, Is.EqualTo(plan2.planId));

            DeletePlan(testPlanID);
        }