private void Validate(IRepository repo)
 {
     IValidator validator = new GenericValidator();
     validator.AddRule(new NonEmptyStringRule(friendlyName, "Friendly name cannot be empty."));
     validator.AddRule(new DuplicateGroupRule(repo, friendlyName));
     validator.Validate();
 }
 private void Validate(IRepository repo)
 {
     IValidator validator = new GenericValidator();
     validator.AddRule(new NullObjectValidator(owner));
     validator.AddRule(new MemberShouldExistRule(repo, groupId, owner.EmailAddress));
     validator.AddRule(new GroupExistsRule(repo, groupId));
     validator.Validate();
 }
 private void Validate(IRepository repo)
 {
     IValidator validator = new GenericValidator();
     validator.AddRule(new NonEmptyStringRule(firstName));
     validator.AddRule(new NonEmptyStringRule(lastName));
     validator.AddRule(new InvalidEmailAddressRule(emailAddress));
     validator.AddRule(new GroupExistsRule(repo, groupId));
     validator.Validate();
 }