title: Mocking a call to an object with a property of type List
body: <p>I am learning Moq, and I would like to mock an interface ISecureAsset that has a property Contexts which returns a list of SecurityContexts. I am testing a method on another class that accesses the Contexts property for authorization.</p>
  
  <pre><code>public interface ISecureAsset {
  
     List&lt;SecurityContext&gt; Contexts { get; set; }
  }
  </code></pre>
  
  <p>How can I do this with Moq? I want to be able to set the values in the Contexts list as well.</p>