コード例 #1
0
        public static void Scenario_Multiple_Approved_Apprenticeships_Employers_And_Providers()
        {
            var builder = new CohortBuilder();

            builder
            .WithDefaultEmployer()
            .WithDefaultProvider()
            .WithParty(Party.None)
            .WithApprovals(Party.Employer | Party.Provider)
            .WithApprenticeshipPaymentStatus(PaymentStatus.Active)
            .WithLastAction(LastAction.Approve)
            .WithApprenticeships(1);
            builder.Build();

            builder = new CohortBuilder();

            builder
            .WithDefaultEmployer()
            .WithProvider(10005077, "Train-U-Good Corporation")
            .WithParty(Party.None)
            .WithApprovals(Party.Employer | Party.Provider)
            .WithApprenticeshipPaymentStatus(PaymentStatus.Active)
            .WithLastAction(LastAction.Approve)
            .WithApprenticeships(1);
            builder.Build();

            builder = new CohortBuilder();
            builder
            .WithEmployer(30060, "06344082", "Rapid Logistics Co Ltd", "7EKPG7", 645, ApprenticeshipEmployerType.NonLevy)
            .WithDefaultProvider()
            .WithParty(Party.None)
            .WithApprovals(Party.Employer | Party.Provider)
            .WithApprenticeshipPaymentStatus(PaymentStatus.Active)
            .WithLastAction(LastAction.Approve)
            .WithApprenticeships(1);
            builder.Build();

            builder = new CohortBuilder();
            builder
            .WithEmployer(30060, "06344082", "Rapid Logistics Co Ltd", "7EKPG7", 645, ApprenticeshipEmployerType.NonLevy)
            .WithProvider(10005077, "Train-U-Good Corporation")
            .WithParty(Party.None)
            .WithApprovals(Party.Employer | Party.Provider)
            .WithApprenticeshipPaymentStatus(PaymentStatus.Active)
            .WithLastAction(LastAction.Approve)
            .WithApprenticeships(1);
            builder.Build();
        }