title: Enriching objects inside AutoMapper's Profile is a good practice?
body: <p>Suppose you have the following object:</p>
  <pre><code>public class Invoice 
  {
      public int UserId { get; set; }
      // ...
  }
  </code></pre>
  <p>And this one:</p>
  <pre><code>public class InvoiceLogDto
  {
      public int UserId { get; set; }
      public string UserName { get; set; }
  }
  </code></pre>
  <p>Is it ok/a good practice to inject an <code>IUserService</code> in the profile class used to map from <code>Invoice</code> to <code>InvoiceLogDto</code> to fill the <code>UserName</code> property?</p>
  <p>Example:</p>
  <pre><code>public class InvoiceLogMapping : Profile
  {
      public InvoiceLogMapping(IUserService userService)
      {
          CreateMap&lt;Invoice, InvoiceLogDto&gt;()
          .ForMember(t =&gt; t.UserName, t =&gt; t.MapFrom(x =&gt; userService.GetName(x.UserId)));
      }
  }
  </code></pre>