title: How to set api version related data to httpcontext for unit testing in .net core?
body: <p>I have the following method in my controller</p>
  
  <pre><code>        private string GetPathBase()
          {
              return _configuration["ApiPathBase"] + $"/v{_httpContext.GetRequestedApiVersion().MajorVersion}";
          }
  </code></pre>
  
  <p>I am not able to mock _httpContext.GetRquestedApiVersion method using moq, as it is an extension method. How can I fill httpContext with test version details, so that the original GetRequestedApiVersion method works?</p>