title: TargetParameterCountException in Moq-based unit-test
body: <p>We have repositories which have a "Save" method. They also throw a "Created" event whenever an entity is saved.</p>
  
  <p>We have been trying to use Moq to mock out the repository as such....</p>
  
  <pre><code>var IRepository = new Mock&lt;IRepository&gt;();
  Request request = new Request();
  IRepository.Setup(a =&gt; a.Save(request)).Raises(a =&gt; a.Created += null, RequestCreatedEventArgs.Empty);
  </code></pre>
  
  <p>This doesn't seem to work and I always get an exception:</p>
  
  <blockquote>
    <p>System.Reflection.TargetParameterCountException:
    Parameter count mismatch.</p>
  </blockquote>
  
  <p>Any example of mocking events with Moq would be helpful.</p>