title: How to use AutoBogus/Bogus to generate a constant value for a property based on its type?
body: <p>I'm trying to generate objects of a class whereby its value should reflect its type.</p>
  <p>For example, if its property's type is a string, then that property's value should be &quot;string&quot; and if it is an integer, it should be of a max integer value. So far, this is what I have:</p>
  <pre><code>        var personFaker = new AutoFaker&lt;Person&gt;()
              .RuleFor(o =&gt; o.Id, 9223372036854775807); //Id is of type long
              .RuleFor(o =&gt; o.Name, &quot;string&quot;)
              .RuleFor(o =&gt; o.Age, 2147483647); //Age is of type integer
          var bookFaker = new AutoFaker&lt;Book&gt;()
              .RuleFor(o =&gt; o.Id, 9223372036854775807); //Id is of type long
              .RuleFor(o =&gt; o.Title, &quot;string&quot;)
              .RuleFor(o =&gt; o.Author, &quot;string&quot;)
              .RuleFor(o =&gt; o.Pages, 2147483647) //Pages is of type integer
  ....
  </code></pre>
  <p>The problem with this approach is that I would have to list out a <code>.RuleFor</code> for every property of that class. This is tedious and inflexible.</p>
  <p>I am wondering if there is a global configuration to specify what values should be generated in <code>AutoFaker</code> or <code>Bogus</code> based on a property's type. For example, for all properties of type <code>string</code>, its generated value can be configured to be set to the word &quot;string&quot;.</p>