public void ShouldDeserializePostJsonToObject() { var request = new Request(); var user = new User {username = "******",password = "******"}; var response = (Httpresponse)request.Execute<Httpresponse>("http://localhost:1234/",user,"POST"); Console.WriteLine(response.Statuscode); Console.WriteLine(response.Location); Assert.IsNotNull(response); }
public void ShouldDeserializePostJsonToString() { var request = new Request(); var user = new User { username = "******", password = "******" }; var response = request.Execute("http://localhost:1234/",user,"POST"); Console.WriteLine(response); Assert.IsNotNull(response); Assert.IsNotEmpty((string)response); }