title: in API, create multiple controller constructor with one parameter
body: <pre class="lang-cs prettyprint-override"><code>[Route("api/[controller]")]
  public class DigitalDocumentController : Controller
  {
  
      private IDigitalDocumentService digitalDocumentService;
      private IDatabaseInitializer databaseInitializer;
  
      public DigitalDocumentController(IDigitalDocumentService digitalDocumentService)
      {
          this.digitalDocumentService = digitalDocumentService;
      }
  
      public DigitalDocumentController(IDatabaseInitializer databaseInitializer)
      {
          this.databaseInitializer = databaseInitializer;
      }
  </code></pre>
  
  <p>i want two controller constructor in my project to Mock in xUnit Testing, but there was an error in my swagger interface {
  "error": "Multiple constructors accepting all given argument types have been found in type 'i2ana.Web.Controllers.DigitalDocumentController'. There should only be one applicable constructor."
  }
  can anybody help me how i can do it ?</p>
  
  <p>… 
  what i am try to do , is to test Uniquness of the Name Field in my database
  My testing code:</p>
  
  <pre class="lang-cs prettyprint-override"><code>[Fact]
  public void AddNotUniqueName_ReturnsNotFoundObjectResult()
  {
      var digitalDocument = new DigitalDocument
      {
          Image = new byte[] { 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20 },
               CreatedOn = DateTime.Today,
               Id = 6,
               Location = "temp",
               Name = "Flower",
               Tages = new List&lt;Tag&gt; { new Tag { Id = 1, Value = "Tag 1" }, new Tag { Id = 1, Value = "Tag 2" } }
      };
      // Arrange
      var mockRepo = new Mock&lt;IDatabaseInitializer&gt;();
      mockRepo.Setup(repo =&gt; repo.SeedAsync()).Returns(Task.FromResult(AddUniqueDigitalDocument(digitalDocument)));
      var controller = new DigitalDocumentController(mockRepo.Object);
  
      // Act
      var result = controller.Add(digitalDocument);
  
      // Assert
      var viewResult = Assert.IsType&lt;NotFoundObjectResult&gt;(result);
      var model = Assert.IsAssignableFrom&lt;int&gt;(viewResult.Value);
      Assert.NotEqual(6, model);
  }
  </code></pre>
  
  <p>the "AddUniqueDigitalDocument" returns 6 only to test that the new digitaldocumet is not the same id of my initialize data.</p>