Skip to content

Instantly share code, notes, and snippets.

View stevenkuhn's full-sized avatar

Steven Kuhn stevenkuhn

View GitHub Profile
@stevenkuhn
stevenkuhn / IISExpressFixture.cs
Created November 19, 2014 02:35
IISExpressFixture
public class IISExpressFixture : IDisposable
{
public Uri Server { get; private set; }
public string SitePath { get; private set; }
private readonly Process _process;
public IISExpressFixture()
{
// Run site on a random port to prevent port clashes
@stevenkuhn
stevenkuhn / Program.cs
Created November 11, 2015 16:41
Swagger File Generation With Swashbuckle
public class Program
{
public static void Main(string[] args)
{
if (args == null || args.Length == 0) throw new InvalidOperationException("You must specify arguments.");
var path = args[0];
using (var server = TestServer.Create<Startup>())
{

Keybase proof

I hereby claim:

  • I am stevenkuhn on github.
  • I am stevenkuhn (https://keybase.io/stevenkuhn) on keybase.
  • I have a public key ASBljJq4I8JmLl_GTa2JNWQcsLo5QVVaXUKU7ZFhhSXFewo

To claim this, I am signing this object: