I'm new to programming and I have troubles with the task. I write unit test where I need to connect to our API with HTTP request and then call a method "create" (for example). I need to get responce and verify that "package" created by the method is of int type. I tried to use HttpRequest class but got stuck. Could somebody help with example, please?
Asked
Active
Viewed 123 times
0
-
Maybe post some code so we can see what's wrong? – Drew McGowen Jul 31 '14 at 13:39
-
Did you try WebClient? This question can help you: http://stackoverflow.com/questions/24738839/post-fields-and-a-file-using-the-new-system-net-webclient/24741208#24741208 – Eric Lemes Jul 31 '14 at 18:09