title: Unable to get Default Constructor
body: <p>I an getting the below issue when running the Unit Test project.</p>
  
  <blockquote>
    <p>Unable to get Default Constructor For class ********</p>
  </blockquote>
  
  <pre><code>[TestClass]
  public class PersonRegistration
  {
      private ILoggingService _loggingService;
      private IUserManager _userManager;
      public PersonRegistration(IUserManager userManager, ILoggingService loggingService)
      {
          this._userManager = userManager;
          this._loggingService = loggingService;
      }
      [TestMethod]
      public void TestMethod1()
      {
          RegisterBindingModel model = new RegisterBindingModel();
          AccountController ac = new AccountController(_userManager, _loggingService);
          model.UserName = "test123@gmail.com";
          var result = ac.Register(model);
          Assert.AreEqual("User Registered Successfully", result);
      }
  </code></pre>
  
  <p>How to fix that. Some answers says that to use a parameter less constructor. But here I need params.</p>
  
  <p>RegisterBindingModel()</p>
  
  <pre><code>public class RegisterBindingModel
  {
      public RegisterBindingModel();
      [Display(Name = "User name")]
      [Required]
      public string UserName { get; set; }
  }
  </code></pre>
  
  <p>Issue <a href="https://i.stack.imgur.com/vXUBj.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/vXUBj.png" alt="Image"></a></p>