Giter Site home page Giter Site logo

bob11327 / wiremock.net Goto Github PK

View Code? Open in Web Editor NEW

This project forked from wiremock-net/wiremock.net

0.0 1.0 0.0 4.38 MB

WireMock.Net is a flexible library for stubbing and mocking web HTTP responses using requests matching criteria. Based on the functionality from http://WireMock.org

License: Apache License 2.0

Batchfile 0.02% HTML 85.39% C# 14.60%

wiremock.net's Introduction

WireMock.Net

A C# .NET version based on mock4net which mimics the functionality from the JAVA based http://WireMock.org

Build status Coverage Status GitHub issues GitHub stars

Name NuGet
WireMock.Net NuGet Badge
WireMock.Net.StandAlone NuGet Badge

Frameworks

The following frameworks are supported:

  • net 4.5.2 and up
  • net 4.6 and up
  • netstandard 1.3
  • netstandard 2.0

Build info

To build you need:

Stubbing

A core feature of WireMock.Net is the ability to return canned/predefined HTTP responses for requests matching criteria, see Wiki : Stubbing & Request Matching.

Using WireMock in UnitTest framework

You can use your favorite test framework and use WireMock within your tests, see Wiki : UnitTesting.

Admin API Reference

The WireMock admin API provides functionality to define the mappings via a http interface, see Wiki : Admin API Reference.

WireMock as a standalone process

This is quite straight forward to launch a mock server within a console application, see Wiki : standalone.

SSL

You can start a standalone mock server listening for HTTPS requests. To do so, there is just a flag to set when creating the server:

var server1 = FluentMockServer.Start(port: 8443, ssl: true);

// or like this

var server2 = FluentMockServer.Start(new FluentMockServerSettings
{
    Urls = new[] { "http://localhost:9091", "https://localhost:9443" }
});
  • In case when using net 4.5.2 or net 4.6, you need a certificate registered on your box, properly associated with your application and the port number that will be used. This is not really specific to WireMock.Net, not very straightforward and hence the following stackoverflow thread might come handy: Httplistener with https support.

  • When using netstandard, WireMock.Net uses a self signed certificate (which can be overriden if you like) to host https urls.

wiremock.net's People

Contributors

stefh avatar alastairtree avatar dmtrrk avatar dreamescaper avatar phillee007 avatar volodymyr-fed avatar rpaulproxy avatar evanlwj avatar subjectivereality avatar raghavendrabankapur avatar

Watchers

Bob Paul avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.