How do I test a running API?
Hey, I'm using NUnit to test my application.
Now, my application project consists of two parts: The application itself and an API server.
I'm running a HttpClient.GetAsync command on the application using my localhost URL for the API.
I want to test this method or rather the API calls.
How do I do that? AFAIK I can't test when the application is running which I have to to get my API running?
I hope someone can help me. Thank you very much!
Now, my application project consists of two parts: The application itself and an API server.
I'm running a HttpClient.GetAsync command on the application using my localhost URL for the API.
var response = client.GetAsync("http://localhost:5255/api/product/sort="+ (int)sort +"&filter="+ (int)filter).Result;I want to test this method or rather the API calls.
How do I do that? AFAIK I can't test when the application is running which I have to to get my API running?
I hope someone can help me. Thank you very much!