title: Unity Of Work + Rich domain
body: <p>I'm trying to implement a rich model with Unit of Work.</p>
  
  <pre><code>public class User : BusinessBase, IUser
      {
          public int UserID { get; }
          public string Name { get; set; }
          public string LastName { get; set; }
          public string Email { get; set; }
          public string Password { get; set; }
          public string Token { get; set; }
          public DateTime SigninDate { get; set; }
          public DateTime LastLogin { get; set; }
  
  
          public User(IUnityOfWork uow) : base(uow)
          {
  
          }
  
          public void Create(User user)
          {
              Name = user.Name;
              LastName = user.LastName;
              Email = user.Email;
              Password = user.Password; //TODO HASH
              Token = GetToken();
              SigninDate = DateTime.Now;
              LastLogin = DateTime.Now;
              Uow.User.Add(this);
          }
  
      }
  </code></pre>
  
  <p>The build runs ok, but in this class the unit of work is null.</p>
  
  <p>I do have a interface with to this class.</p>
  
  <pre><code>interface IUser: ICommitable
      {
          void Create(User user);
          void Delete();
          void EditName(string name);
          void EditLastName(string lastName);
          void EditEmail(string email);
          void EditPassword(string password);
          void GenerateToken();
          string GetToken();
          void UpdateLoginDate();
      }
  </code></pre>
  
  <p>and at UnityConfig.cs, I register the type</p>
  
  <pre><code>container.RegisterType&lt;IUser, User&gt;();
  </code></pre>
  
  <p>Why isn't Unit Of Work not being initialized, and how can I solve this?</p>