Skip to content

Instantly share code, notes, and snippets.

@stijnmoreels
Last active August 7, 2023 05:45
Show Gist options
  • Select an option

  • Save stijnmoreels/0e6577fdae7ba2bd92e9298d03ecb1cd to your computer and use it in GitHub Desktop.

Select an option

Save stijnmoreels/0e6577fdae7ba2bd92e9298d03ecb1cd to your computer and use it in GitHub Desktop.
public class MyTestContext
{
private string _tag;
public static MyTestContext Given()
{
return new MyTestContext();
}
public void WhenRequest(string tag = "#a1b23")
{
_input = input;
}
public async Task ShouldRespondWithAsync(Func<HttpResponseMessage, Task> assertionAsync)
{
var request = new HttpRequestMessage(HttpMethod.Get, $"http://localhost:1234/api/app?tag={_tag}");
// Ignore this; out of scope.
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment