Created
April 26, 2017 16:32
-
-
Save fasetto/eb7172695de754d0365e2974f3998874 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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