public void Validate(ResolvedTreeRoot resolvedTreeRoot) { Lesson3CommonValidator.CheckStep11Controls(resolvedTreeRoot); DotHtmlCommonValidator.CheckCountOfHtmlTag(resolvedTreeRoot, "div", 1); DotHtmlCommonValidator.ValidatePropertiesBindings(resolvedTreeRoot, Lesson3CommonValidator.CreateStep14Properties()); }
public void Validate(ResolvedTreeRoot resolvedTreeRoot) { var step9Properties = Lesson3CommonValidator.CreateStep9Properties(); var contriesProperty = step9Properties.Single(p => p.TargetControlBindName == ControlBindName.ComboBoxDataSource); contriesProperty.Name = $"_parent.{contriesProperty.Name}"; DotHtmlCommonValidator.ValidatePropertiesBindings(resolvedTreeRoot, step9Properties); }
public void Validate(ResolvedTreeRoot resolvedTreeRoot) { DotHtmlCommonValidator.ValidatePropertiesBindings(resolvedTreeRoot, Lesson3CommonValidator.CreateStep6Properties()); Lesson3CommonValidator.CheckStep5Controls(resolvedTreeRoot); DotHtmlCommonValidator.CheckControlTypeCount <CheckBox>(resolvedTreeRoot, 3); var checkboxes = resolvedTreeRoot.GetDescendantControls <CheckBox>().ToList(); if (!checkboxes.Any(c => c.GetValue(CheckableControlBase.CheckedValueProperty) == "M")) { throw new CodeValidationException(string.Format(ValidationErrorMessages.PropertyValueError, "CheckedValue", "M")); } if (!checkboxes.Any(c => c.GetValue(CheckableControlBase.CheckedValueProperty) == "S")) { throw new CodeValidationException(string.Format(ValidationErrorMessages.PropertyValueError, "CheckedValue", "S")); } if (!checkboxes.Any(c => c.GetValue(CheckableControlBase.CheckedValueProperty) == "N")) { throw new CodeValidationException(string.Format(ValidationErrorMessages.PropertyValueError, "CheckedValue", "N")); } }
public static void ValidateOnlyStep3Properties(ResolvedTreeRoot resolvedTreeRoot) { DotHtmlCommonValidator.CheckControlTypeCount <TextBox>(resolvedTreeRoot, 3); DotHtmlCommonValidator.ValidatePropertiesBindings(resolvedTreeRoot, CreateStep2ControlProperties()); }
public static void ValidateStep2ValidationProperties(ResolvedContentNode resolvedContentNode) { DotHtmlCommonValidator.ValidatePropertiesBindings(resolvedContentNode, CreateStep2ValidationValueProperties()); }
public static void CheckStep11Controls(ResolvedTreeRoot resolvedTreeRoot) { CheckStep5Controls(resolvedTreeRoot); DotHtmlCommonValidator.ValidatePropertiesBindings(resolvedTreeRoot, CreateStep11Properties()); DotHtmlCommonValidator.CheckControlTypeCount <ComboBox>(resolvedTreeRoot, 1); }
public void Validate(ResolvedTreeRoot resolvedTreeRoot) { Lesson3CommonValidator.CheckStep5Controls(resolvedTreeRoot); DotHtmlCommonValidator.ValidatePropertiesBindings(resolvedTreeRoot, Lesson3CommonValidator.CreateStep4Properties()); }
public static void ValidateTextBoxBindings(ResolvedTreeRoot resolvedTreeRoot) { ValidateBasicControls(resolvedTreeRoot); DotHtmlCommonValidator.ValidatePropertiesBindings(resolvedTreeRoot, CreateStep4Properties()); }