title: What is Setup and Returns in MOQ C#?
body: <p>I read a few tutorial on <code>Moq</code> C# package but I still can't really understand what is <code>Setup</code> and <code>Returns</code> in <code>Moq</code>.</p>
  <p>Example,</p>
  <pre><code>mock.Setup(p =&gt; p.GetEmployeebyId(1)).ReturnsAsync(&quot;JK&quot;); 
  </code></pre>
  <p>Example 2,</p>
  <pre><code>mock.Setup(x =&gt; x.Save(It.IsAny&lt;DeskBooking&gt;())).Callback&lt;DeskBooking&gt;(
  deskBooking =&gt;
  {
  savedDeskBooking = deskBooking;
  });
  </code></pre>
  <p>)</p>