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 -

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

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