I could be wrong, but I don't think that works. Because the asp page is in a physically different CLR space. Moles lets you inject into the same space, but the not a different process
You could use Moles to deal with Page_Load, and extension methods to get around putting your secret handshake in the ASP.NET page, thus avoiding the mixing of test code with application code altogether.
I could be wrong, but I don't think that works. Because the asp page is in a physically different CLR space. Moles lets you inject into the same space, but the not a different process
isidoreus 7 months ago
You could use Moles to deal with Page_Load, and extension methods to get around putting your secret handshake in the ASP.NET page, thus avoiding the mixing of test code with application code altogether.
Auxon 7 months ago