title: custom fluentvalidator
body: <p>I am very new in using fluentvalidator. All I know is the basic <code>rulefor()</code> but when it comes to custom I m totally clueless. Can anyone guide me on this?</p>
  
  <p>I need to validate a nullable bool property. I need to compare 5 bool properties is at least one of them is selected then it should return true and valid otherwise, it should return false and prompt an error message that at least one of them is selected.
   below is what I have come up with but not working.</p>
  
  <pre><code>public class NullableValidator : AbstractValidator&lt;bool&gt;
  {
  
      public bool isQualificationSet(tblNeutralFileMaint neutral)
      {
          if (neutral.MediationCivil==false &amp;&amp; !neutral.CaseEvalCondemnation==false &amp;&amp;        neutral.MediationMagistrate==false &amp;&amp; neutral.CaseEvalTorts==false &amp;&amp; neutral.CaseEvalDomesticViolence==false)
              return false;
          else return true;
      }
  } 
  </code></pre>
  
  <p>I used this as like this:</p>
  
  <pre><code>RuleFor(n =&gt; n.IsQualificationSet).SetValidator(new NullableValidator());
  </code></pre>
  
  <p>can anyone tell me how? Been working on this for a few hours now. It does not show any error but does not work or go to the method.</p>