hacking around to get a POST acceptance test working, doesnt really mean anything tbh

This commit is contained in:
TomPallister
2016-09-13 19:34:53 +01:00
parent 72cec38c0e
commit 8423199754
3 changed files with 39 additions and 6 deletions

View File

@ -33,7 +33,14 @@ namespace Ocelot.AcceptanceTests.Fake
{
app.Run(async context =>
{
await context.Response.WriteAsync("Hello from Laura");
if (context.Request.Method.ToLower() == "get")
{
await context.Response.WriteAsync("Hello from Laura");
}
else
{
context.Response.StatusCode = 201;
}
});
}
}