title: Creating mock objects
body: <p>I created simple GUI in WPF. I would like to show there some data got from database. But for now I have only GUI and few functions that do simple calculations on received data. I know that my goal is to create mock objects that would generate some "false" data, but I have no idea how to start. Could you tell me how to create one of them, I could then create analogously the rest. Here is my class that does calculations:</p>
  
  <pre><code>        public Statistic showUsersPostCount(Options options)
      {
          Query q = (Query)this.client.DoQuery();
          q.AddAuthor(options.Login);
          q.SetSinceDate(options.DateFrom);
          q.SetUntilDate(options.DateTo);
          q.AddTitleWord(options.Discussion);
          List&lt;Entity&gt; list = (List&lt;Entity&gt;)q.PerformQuery();
  
          Statistic statistic = new Statistic();
  
          statistic.UsersPostCount = list.Count;
          return statistic;
      }
  </code></pre>
  
  <p>this functions returns some simple statistic. But I do not have code for class Query. How can I mock object of this class?</p>