Testing TempData, and Mocking SessionState (www.aaronlerch.com)
submitted by
aaronlerch(1665) 1 year, 10 months ago
About a month and a half ago Ben Scheirman wrote about testing TempData in ASP.NET MVC. While I can easily understand what Ben’s code is doing, what I couldn’t figure out is why it worked. ... So, while Ben’s code will definitely work, here’s an extension method that can help with mocking out the session a little more “correctly”:
|
category: ASP.NET
|
Views: 17
tags:
ASPNETMVC ASP.NET another
Everyones tags:
Your Tags: