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 -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -