public void Validate(IObjectValidator validator) { validator.Verify(DateOfOccurrence <= DateReported, "Occurrence date must be equal or fall before Reported date."); validator.AddChildren(InsuredParty); }
public void Validate(IObjectValidator validator) { validator.Verify(FirstName != LastName, "First Name cannot Equal Last Name!"); validator.Verify(Addresses.Any(), "Must have at least one address."); validator.AddChildren(Addresses); }
public void Validate(IObjectValidator validator) { validator.Verify(!string.IsNullOrWhiteSpace(Name), "Connection Name not specified."); validator.Verify(ConnectRetry > 0, "Connection Retry must be greater than zero."); validator.Verify(ConnectTimeout > 0, "Connection Timeout must be greater than zero."); validator.Verify(KeepAlive > 0, "Connection Keep-Alive must be greater than zero."); validator.AddChildren(EndPoints); }
public void Validate(IObjectValidator validator) { validator.AddChildren(Contexts); validator.Verify( Contexts.WhereDuplicated(c => c.ContextName).Empty(), "Context names must be unique."); }
public void Validate(IObjectValidator validator) { validator.AddChild(Hosts); validator.AddChildren(ExchangeSettings); validator.AddChildren(QueueSettings); }
public void Validate(IObjectValidator validator) { validator.AddChildren(Connections); }
public void Validate(IObjectValidator validator) { validator.AddChildren(Hosts); }