title: ASP.NET MVC3 Fluent Validation Constructor hit multiple times per request
body: <p>I have an ASP.NET MVC3 website setup using fluent validation and ninject.  The validation code is working.  However, I set a break point in the validation class constructor and I noticed that when I request my view that uses the validation the constructor gets hit multiple times.  Based on very basic testing it seems that the number of times the constructor is hit is equal to the number of properties that exist on the object.  Has anyone else come across something similar?  Or can someone shed more insight on how this type of validation works behind the scenes? -Thanks</p>
  
  <p>Here is the constructor...</p>
  
  <pre><code>public class PersonValidator : AbstractValidator&lt;Person&gt; {
      public PersonValidator() {
          RuleFor(x =&gt; x.Id).NotNull();
          RuleFor(x =&gt; x.Name).Length(0, 10);
          RuleFor(x =&gt; x.Email).EmailAddress();
          RuleFor(x =&gt; x.Age).InclusiveBetween(18, 60);
      }
  }
  </code></pre>
  
  <p>Here are the libraries/resources that I am using (I just got the NuGet packages and configured everything based on the info from the two links below):</p>
  
  <p><a href="http://fluentvalidation.codeplex.com/wikipage?title=mvc" rel="noreferrer">http://fluentvalidation.codeplex.com/wikipage?title=mvc</a>
  https://github.com/ninject/ninject.web.mvc.fluentvalidation</p>