title: Mocking a service call of boolean type
body: <p>I have this method in my C# code:</p>
  
  <pre><code>public virtual bool VarselDAL_HentAvtaleForVarsling(
              DateTime varselDato, 
              out AvtaleForVarsling avtaleForVarsling)
  </code></pre>
  
  <p>which I'm trying to moq the service call. But I'm facing trouble with the <code>out</code>-parameter of my method. </p>
  
  <p>Can anyone please hit me with right generics? I tried this one but of no use:</p>
  
  <pre><code>resMock.Setup(
             res =&gt; res.VarselDAL_HentAvtaleForVarsling(It.IsAny&lt;DateTime&gt;(), out _avtale))
                   .Returns(true).AtMostOnce().Verifiable()  
  </code></pre>