Skip to content

Instantly share code, notes, and snippets.

@fasetto
Created April 26, 2017 16:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fasetto/eb7172695de754d0365e2974f3998874 to your computer and use it in GitHub Desktop.
Save fasetto/eb7172695de754d0365e2974f3998874 to your computer and use it in GitHub Desktop.
[TestMethod]
public void ResponseTest()
{
// Arrange
var client = new JsonHttpClient("http://127.0.0.1:1337/");
// Act
string response = client.Get<HelloResponse>("/hello/SERKAN").Result;
// Ya da..
//string response = client.Get(new HelloRequest { Name = "SERKAN" }).Result;
// Assert
Assert.AreEqual("Hello, SERKAN", response);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment