title: Passing constructor parameter to Nunit Base class
body: <p>I have a base class to generate duplicated test methods.</p>
  
  <pre><code>public interface IService1 { }
  public interface IService2: IService1 { }
  
  [TestFixture]
  public abstract class MyBase
  {
      private readonly IService1 service;
  
      protected MyBase(IService1 service)
      {
          this.service = service;
      }
  
      [Test]
      public void test1()
      {
          //service.callmethod
      }
  }
  </code></pre>
  
  <p>I have implemented this base class to another test class like this:</p>
  
  <pre><code>[TestFixture]
  public class MyTest:MyBase
  {
      private IService2 service;
  
      [SetUp]
      public void setup()
      {
          service = A.Fake&lt;IService2&gt;();
      }
  
      public MyTest(IService2 service) : base(service)
      {
      }
  }
  </code></pre>
  
  <p>This gives error: <strong>No suitable constructor was found</strong>.</p>