title: Dependency Injection - Unity Constructor injection not working, only getter setter injection
body: <p>I am having issues with Unity Dependency Injection. When I try to use constructor injection, my injected services stay empty/null. </p>
  
  <pre><code>public UserService(IUnitOfWorkIntranet unitOfWork, IUserRepository userRepository)
     {
       mappingToDomainModel = IntranetMappingToDomainModel.GetMappingToDomainModelInstance;
       IntranetAutoMapperConfiguration autoMapper = IntranetAutoMapperConfiguration.GetAutoMapperConfigurationInstance;
       unitOfWorkIntranet = unitOfWork;
       userRepository = userRepository;
      } 
  </code></pre>
  
  <p>However, when I use a getter everything works just fine. </p>
  
  <pre><code>private IUserRepository _userRepository
     {
        get
     {
        return GlobalConfiguration.Configuration.DependencyResolver.GetService(typeof(IUserRepository)) as UserRepository;
     }
     } 
  </code></pre>
  
  <p>As far as I know it is configured properly in UnityConfig.cs</p>
  
  <pre><code>container.RegisterType&lt;IUnitOfWorkIntranet, UnitOfWorkIntranet&gt;();
  container.RegisterType&lt;IUserService, UserService&gt;();
  container.RegisterType&lt;IUserRepository, UserRepository&gt;();
  </code></pre>
  
  <p>Am I missing something here? Why is my constructor injection broken?</p>
  
  <p>Any help is welcome, Regards!</p>