public ActionResult Overview(object notUsed)
        {
            var cmd = new StartChangeOfCircs();

            return(Exec(cmd,
                        success: next => RedirectNext(next),
                        failure: () => View()));
        }
        public void Execute_CreatesForm()
        {
            var cmd = new StartChangeOfCircs();

            var nextSection = cmd.Execute();

            var createdForm = Repository.Load <ChangeOfCircs>(nextSection.Id);

            createdForm.Should().NotBeNull("form should be in database");

            nextSection.Section.Should().Be(Navigation.Order.First());
        }
Beispiel #3
0
        public void ChangeOnlyPaymentDetails()
        {
            var userId = "*****@*****.**";

            new BestStartGrantBuilder("existingForm").PreviousApplicationFor(userId).Insert();

            var next   = new StartChangeOfCircs().Execute();
            var formId = next.Id;

            next = AddConsent(next);
            next = AddIdentity(next, userId);
            next = AddOptions(next, o => { o.AllUnselected(); o.ChangePaymentDetails = true; });
            next = AddPaymentDetails(next);
            next = AddEvidence(next);
            next = AddDeclaration(next);

            next.Section.Should().BeNull();
        }
Beispiel #4
0
        public void ChangeAll()
        {
            var userId = "*****@*****.**";

            new BestStartGrantBuilder("existingForm").PreviousApplicationFor(userId).Insert();

            var next   = new StartChangeOfCircs().Execute();
            var formId = next.Id;

            next = AddConsent(next);
            next = AddIdentity(next, userId);
            next = AddOptions(next);
            next = AddApplicantDetails(next);
            next = AddExpectedChildren(next);
            next = AddHealthProfessional(next);
            next = AddPaymentDetails(next);
            next = AddEvidence(next);
            next = AddDeclaration(next);

            next.Section.Should().BeNull();
        }