How to Include AntiForgeryToken for MVC Integration Testing

added by DotNetKicks
10/8/2019 4:20:37 PM

258 Views

In the previous article, we have learned how to write integration tests for different actions (Index and Create), but while we were testing the Create (POST) action, we faced a problem with AntiForgeryToken validation. We skipped that problem by commenting out that validation attribute and our test passed, but that was just a temporary solution.


0 comments