-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I'm doing some maintenance on an older web application written in Monorail v1.0.3. I want to unit test an action that uses RenderText(). How do I extract the content in my test? Reading from controller.Response.OutputStream doesn't work, since the response stream is either not setup properly in…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I have a shopping cart application running on MonoRail and using Castle ActiveRecord/NHibernate, and there is a ShoppingCart table and a ShoppingCartItems table, which are mapped to entities.
Here's the scenario: a user adds things to the shopping cart, say 5 items, and goes to view the cart.…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I've got a few questions related to the use of MonoRail
Testing
Does everyone tend to use NUnit for their testing? I haven't worked enough with testing to know if this is a good testing framework to use. I'm just looking to get more into testing my applications a lot more than before and wanted…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I'm doing some maintenance on an older web application written in Monorail v1.0.3. I want to unit test an action that uses RenderText(). How do I extract the content in my test? Reading from controller.Response.OutputStream doesn't work, since the response stream is either not setup properly in…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Is it possible to have a template with html content in vm for a block component?
I'm doing a lot of stuff in html, and want the html reside in a .vm, not in codebehind.
Here is what i've got:
public class TwoColumn : ViewComponent
{
public override void Render()
{
RenderText(@"
…
>>> More