Use WireMock directly into my ASP.NET Web API server and not with a separate process ? #1374
              
                Unanswered
              
          
                  
                    
                      ChrisProlls
                    
                  
                
                  asked this question in
                Q&A
              
            Replies: 0 comments
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Is it possible to use WireMock.NET as a pure middleware in my ASP.NET Web API server (without having a separate process) ?
I want to use the same HTTP pipeline as my current server (authentication, static file ...) but let WireMock generate API on-the-fly based on JSON config file ?
I found the sample here : https://github.com/wiremock/WireMock.Net/blob/master/examples/WireMock.Net.WebApplication
but I still need to write the proper .MapGet(), .MapPost() ... I need to forward the request to WireMock. I'm searching for a more generic way of ding this.
Beta Was this translation helpful? Give feedback.
All reactions