title: Is it possible to use a dictionary in a mock method with Moq in C#?
body: <p>I have a service interface (<strong>IService</strong>) and a concrete class that implements the interface, which has the following methods:</p>
  
  <pre><code>string UploadText(string bucketName, string blobName, string text);
  string DownloadText(string bucketName, string blobName);
  bool IsExistent(string bucketName, string blobName); // check whether the blob exists in the bucket
  </code></pre>
  
  <p><strong>In my unit test with a mock object:</strong></p>
  
  <pre><code>var mockSvc = new Mock&lt;IService&gt;();
  mockSvc.Setup(svc =&gt; svc.IsExistent(It.IsAny&lt;string&gt;(), It.IsAny&lt;string&gt;())).Returns(....); // is there a way to use a dictionary as store in this mock method ?
  </code></pre>
  
  <p>So in my mock, I would like to use a dictionary of dictionaries to represent the structure <code>[bucketName: [blobName : text]]</code>. Is there a way to initialize a dictionary for the mock method to store test data?</p>