internal ResponseModel Delete(FormComponent formComponent) { return(_formComponentRepository.Delete(formComponent)); }
public SlideToggleTest(TestFixture fixture) : base(fixture) { this.Login(); this.page = this.Sidenav.NavigateToForm(); }
internal ResponseModel Insert(FormComponent formComponent) { return(_formComponentRepository.Insert(formComponent)); }
internal ResponseModel Update(FormComponent formComponent) { return(_formComponentRepository.Update(formComponent)); }
public TextAreaTest(TestFixture fixture) : base(fixture) { this.Login(); this.page = this.Sidenav.NavigateToForm(); }
FormComponentResultDTO GetFormResultFromFormComponent(FormComponent newsComponent, List <(int FormComponentId, string Result)> previousValues)
public FormComponentAdapter(WebComponentMetadata metadata, FormComponent <TModel> component) : base(metadata, component) { }
/** * Populated the queue for the given form. This can be * called recursively for forms that contain subforms with * OR conjunctions. * * @param form the form to cycle through and populate the queue */ private void populateQueue(Form form) { Object[] obj = form.componentList; FormComponent[] children = new FormComponent[0]; if (obj != null) { children = new FormComponent[obj.Length]; for (int i = 0; i < obj.Length; i++) { children[i] = (FormComponent)obj[i]; } } //FormComponent[] children = (FormComponent[])form.componentList; // Find the FieldInfo where we need to put the big OR right in front. // These are added intot he needsBigOr set. if (FormConjunctionOperator.OR.Equals(form.conjunctionOp)) { for (int i = 1; i < children.Length; i++) { if (children[i] is FieldInfo) { needsBigOrSet.Add(children[i]); } else if (children[i] is Form) { FieldInfo found = findLeftMostFieldInfo((Form)children[i]); if (found != null) { needsBigOrSet.Add(found); } } } } // Iterate through all the fields recursing as needed for // Form and FieldInfoChoice for (int i = 0; i < children.Length; i++) { if (children[i] is FieldInfo) { // For FieldInfo, add them straight into the queue // but mark them as little-ors if needed. populateQueue((FieldInfo)children[i]); if (FormConjunctionOperator.OR.Equals(form.conjunctionOp) && i != 0) { needsLittleOrSet.Add(children[i]); } } else if (children[i] is FieldInfoChoice) { // For FieldInfoChoice, add all of the child components to // the queue, and add a little or before each child component // after the first. FieldInfo[] fieldInfoArray = (FieldInfo[])((FieldInfoChoice)children[i]).fieldInfoList; for (int j = 0; j < fieldInfoArray.Length; j++) { populateQueue(fieldInfoArray[j]); if (j > 0) { needsLittleOrSet.Add(fieldInfoArray[j]); } } } else if (children[i] is Form) { // For a form, recurse populateQueue((Form)children[i]); } } }
public AutoCompleteFilterTest(TestFixture fixture) : base(fixture) { this.Login(); this.page = this.Sidenav.NavigateToForm(); }