I've been trying to get to grips with using Test Driven Development but I've come across an issue I can't seem to find a solution for.
I have two Index methods on my home controller, one with the [HttpGet] and [HttpPost]but when I try and test within the unit test I am getting an ambiguous error.
Apart from renaming the controller methods, which I don't really want to do since it seems that using the verbs on the controller methods is the preferred way of writing controller methods, is there anyway I can test the HTTP verbs within my unit testing?
Aucun commentaire:
Enregistrer un commentaire