public void the_section_length_is_returned_correctly() { var section = FormSection.OrganisationDetails; config.Fields = new Dictionary <FormSection, FormPageDefinition[]> { { section, new[] { new FormPageDefinition() } } }; var result = form.GetSectionLength(section); Assert.AreEqual(config.Fields.Count, result); }
protected virtual string GetLastViewPath(FormSection section) { return(GetViewPath(section, FormDefinition.GetSectionLength(section))); }