Esempio n. 1
0
        public void Validate(IObjectValidator validator)
        {
            validator.Verify(DateOfOccurrence <= DateReported,
                             "Occurrence date must be equal or fall before Reported date.");

            validator.AddChildren(InsuredParty);
        }
Esempio n. 2
0
        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);
        }
Esempio n. 3
0
 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);
 }
Esempio n. 4
0
        public void Validate(IObjectValidator validator)
        {
            validator.AddChildren(Contexts);

            validator.Verify(
                Contexts.WhereDuplicated(c => c.ContextName).Empty(),
                "Context names must be unique.");
        }
Esempio n. 5
0
 public void Validate(IObjectValidator validator)
 {
     validator.AddChild(Hosts);
     validator.AddChildren(ExchangeSettings);
     validator.AddChildren(QueueSettings);
 }
Esempio n. 6
0
 public void Validate(IObjectValidator validator)
 {
     validator.AddChildren(Connections);
 }
Esempio n. 7
0
 public void Validate(IObjectValidator validator)
 {
     validator.AddChildren(Hosts);
 }