public void TestCreatePlan_Full()
        {
            var create = new CreatePlan
            {
                PlanCode = "abc",
                Name = "thePlan",
                Description = "theDescription",
                IntervalType = IntervalType.Annual,
                Amount = 100,
                NumberOfPayments = 3,
                TrialNumberOfIntervals = 2,
                TrialIntervalType = TrialIntervalType.Month,
                Active = true
            };

            string actual = create.Serialize();
            const string expected = @"
            <createPlan>
            <planCode>abc</planCode>
            <name>thePlan</name>
            <description>theDescription</description>
            <intervalType>ANNUAL</intervalType>
            <amount>100</amount>
            <numberOfPayments>3</numberOfPayments>
            <trialNumberOfIntervals>2</trialNumberOfIntervals>
            <trialIntervalType>MONTH</trialIntervalType>
            <active>true</active>
            </createPlan>";
            Assert.AreEqual(expected, actual);
        }
        public void TestCreatePlan_OnlyRequired()
        {
            var create = new CreatePlan
            {
                PlanCode = "abc",
                Name = "thePlan",
                IntervalType = IntervalType.Annual,
                Amount = 100
            };

            string actual = create.Serialize();
            const string expected = @"
            <createPlan>
            <planCode>abc</planCode>
            <name>thePlan</name>
            <intervalType>ANNUAL</intervalType>
            <amount>100</amount>
            </createPlan>";
            Assert.AreEqual(expected, actual);
        }
        public void testCreatePlan()
        {
            CreatePlan createPlan = new CreatePlan();

            batchRequest.AddCreatePlan(createPlan);

            Assert.AreEqual(1, batchRequest.GetNumCreatePlans());

            mockLitleFile.Verify(litleFile => litleFile.CreateRandomFile(It.IsAny<String>(), It.IsAny<String>(), It.IsAny<String>(), mockLitleTime.Object));
            mockLitleFile.Verify(litleFile => litleFile.AppendLineToFile(mockFilePath, createPlan.Serialize()));
        }