title: Setting up a Moq Mock<Interface> call to a method that returns a string
body: <p>I've got a class and a method that looks something like this:</p>
  
  <pre><code>public class FieldLookup : IFieldLookup
  {
      public string LookupField(string Var1, string Var2)
      {
          // do a database lookup
      }
  }
  </code></pre>
  
  <p>This works fine in the actual class where it's being used with Dependency Injection.  What I'm trying to figure out is how, in the Unit Test, do I use the Moq framework to mock a call to this method.</p>
  
  <pre><code>var fieldLookup = new Mock&lt;IFieldLookup&gt;();
  </code></pre>
  
  <p>Then, how do I do this....?</p>
  
  <pre><code>fieldLookup.Setup&lt;string&gt;(x =&gt; x.LookupField("", "").Returns("something"));
  fieldLookup.Setup(x =&gt; x.LookupField("", "").Returns("something"));
  </code></pre>
  
  <p>Both of these tell me that "String does not contain a definition for Return".  Been playing around, but not getting it.</p>