title: Use multiple collectionfixture on my test class in xUnit 2.x
body: <p>I am writing test cases for my DataAccessRepository ( using entity framework) class. This class takes two argument in constructor.
  1) connection object
  2) Automapper object</p>
  
  <p>Now, I am using collectionFixture in xunit to pass DatabaseFixture in my test class but I need to pass AutoMapper Fixture as well to the same test class. I tried adding two collection, one after another but it is not valid.  Can someone please throw some light on how to use more than one FixtureCollection on a test class in xunit.</p>
  
  <p>My Unit test class looks as follows and it is throwing error as I can not use two CollectionFixture attribute on the class,</p>
  
  <p>`</p>
  
  <pre><code>[Collection(Traits.DatabaseFixtureCollection)]
      [Collection(Traits.AutomapperFixtureCollection)]
      public class MyAssessmentRepositoryTests
      {
          private readonly IMyAssessmentsRepository _Repo;
          public MyAssessmentRepositoryTests(DatabaseFixture dbFixture,AutomapperFixture amFixture)             
          {
              this._Repo = new MyAssessmentRepository(dbFixture.IcmDbContext,amFixture.Mapper);
  
          }
   }`
  </code></pre>