title: Unit test a static method that calls a static method using moq
body: <p>As the title, the code itself as following</p>
  
  <pre><code>internal static class ThumbnailPresentationLogic
      {
          public static string GetThumbnailUrl(List&lt;Image&gt; images)
          {
              if (images == null || images.FirstOrDefault() == null)
              {
                  return ImageRetrievalConfiguration.MiniDefaultImageFullUrl;
              }
  
              Image latestImage = (from image in images
                                   orderby image.CreatedDate descending
                                   select image).First();
  
              Uri fullUrl;
  
              return 
                  Uri.TryCreate(new Uri(ImageRetrievalConfiguration.GetConfig().ImageRepositoryName), latestImage.FileName,
                      out fullUrl)
                      ? fullUrl.AbsoluteUri
                      : ImageRetrievalConfiguration.MiniDefaultImageFullUrl;
          }
      }
  </code></pre>
  
  <p>I don't want the unit test go through any methods in <code>ImageRetrievalConfiguration</code> class, so how can I mock <code>ImageRetrievalConfiguration</code> and pass it into <code>ThumbnailPresentationLogic</code> class ??</p>