ASP.NET MVC Unit Test for testing CSRF attacks? -


how can write integration/unit test pass csrf attacks in order write passing test crud operations?

how should send csrf token controller use [validateantiforgerytoken] attribute in unit test project?

note: use nunit framework test framework.

edit:

i don't want test [validateantiforgerytoken] attribute , know isn't best practices. in order pass unit tests i've written attribute (crud), should provide it. otherwise, won't pass unit tests.


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

reflection - How to access the object-members of an object declaration in kotlin -

php - Doctrine Query Builder Error on Join: [Syntax Error] line 0, col 87: Error: Expected Literal, got 'JOIN' -