Refer to these steps to achieve your requirements:
- Add Delete files step/task (delete previous test result files if repository isn’t cleaned)

- Add Run Command Line step/task to execute MSTest command

- Add Publish Test Results step/task
On the other hand, you can do test in Unit Test too, just send the request and check the response, related threadthread.
