Skip to content

Instantly share code, notes, and snippets.

View sjdweb's full-sized avatar
🎯
Focusing

Sean Drumm sjdweb

🎯
Focusing
  • Toronto, Canada
View GitHub Profile
@sjdweb
sjdweb / BrowserShim.cs
Created October 28, 2016 20:27
NancyFx Browser shim for acceptance tests to HttpResponseMessage (specifically for asp.net core migration).
public class BrowserShim
{
private readonly HttpClient _client;
public BrowserShim(HttpClient client)
{
_client = client;
}
private static RequestModifier ApplyModifier(Action<RequestModifier> action, HttpRequestMessage req, string url)