Skip to content

Instantly share code, notes, and snippets.

View ambertests's full-sized avatar

Amber Race ambertests

View GitHub Profile
@ambertests
ambertests / SimpleServiceCaller.cs
Created December 14, 2018 00:33
Code Samples for WireMock.Net Walkthrough
using System;
using System.Net;
using RestSharp;
using Newtonsoft.Json;
namespace WireMockSample
{
public class SimpleServiceCaller
{
private readonly string _baseUrl;
@ambertests
ambertests / middleware.py
Last active January 10, 2019 15:56
Example of a Hoverfly middleware script which creates a response based on csv lookup
#!/usr/local/bin/python3
import sys, csv
import json
import logging
logging.basicConfig(filename='middleware.log', level=logging.DEBUG)
logging.debug('middleware called')
tokens = {}