public void the_last_page_is_returned_when_requested()
        {
            const FormSection validSection    = FormSection.OrganisationDetails;
            const string      validActionName = "validName";

            config.Fields = new Dictionary <FormSection, FormPageDefinition[]>
            {
                {
                    validSection,
                    new[]
                    {
                        new FormPageDefinition(nameof(ExampleViewModel.Populated), validActionName)
                    }
                }
            };

            var result = form.GetLastPage(validSection);

            Assert.IsTrue(result.MatchesName(validActionName));
        }
Esempio n. 2
0
 protected virtual string GetLastViewPathForNewSection(FormSection section)
 {
     return(FormDefinition.GetLastPage(section).ActionName);
 }