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

angular - DownloadURL return null in below code -

meteor - inserting data to database gives error "insert failed: Method '/texts/insert' not found" -