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

What is happening when Matlab is starting a "parallel pool"? -

php - Cannot override Laravel Spark authentication with own implementation -

Qt QGraphicsScene is not accessable from QGraphicsView (on Qt 5.6.1) -