Articles : Page 1 of 1
- Filter:
- Mono
- Controller
-
How to access controller methods from a view in ASP.NET MVC
Jul 1130This question has been posed in several places. One of the places is on StackOverflow here. The use case here is that my controller has important state or an important function, and I’d like to leverage it from the view. It’s not appropriate to factor out to an html helper or other view-based utility class. It is something unique to the controller. It would be very easy to just pass the controller over to the view so that the view could make use of its methods, but there is a lot of discussion...
-
Are you Mocking Me?
Jan 1115Jimmy has had a couple posts (mocks, mocks, and less mocks) that prompted Derick to post this on his experience with tests Id like to add my thoughts to mix. First, let me say Im not offering an answer to Dericks question (sorry Derick), simply some ideas to consider. If they help you, great. If not, please join the mix. Not All Tests are created equal If I told you there are only X types of programs you can write to solve any problem and they could only be created a certain way, etc. youd ...
- 1

