protected override void Arrange() { base.Arrange(); validationModel = Container.Resolve<ValidationModel>(); traceListener = LoggingSettingsViewModel.DescendentElements(x => x.ConfigurationType == typeof(FormattedEventLogTraceListenerData)).First(); var bindableProperty = traceListener.Property("TraceOutputOptions").BindableProperty; bindableProperty.BindableValue = "Invalid"; result = bindableProperty.Property.ValidationResults.First(); }
protected override void Act() { EmailTraceListener.Validate(); result = EmailTraceListener.ValidationResults.Where(e => e.Message.Contains("Supply a user name")).FirstOrDefault(); }
protected override void Act() { EmailTraceListener.Validate(); result = EmailTraceListener.ValidationResults.Where(e => e.Message.Contains("user name and password are not needed")).FirstOrDefault(); }
public void Navigate(ValidationResult validationResult) { Guard.ArgumentNotNull(validationResult, "validationResult"); var elementWithError = lookup.GetElementById(validationResult.ElementId); if (elementWithError != null) { if (!(elementWithError is SectionViewModel)) { elementWithError.ContainingSection.ExpandSection(); } elementWithError.PropertiesShown = true; elementWithError.Select(); } }