Omgili - forum search, search forums  
  

Discussions about control unit

Displaying 1 - 10 out of 237,786 discussions.  
RSS Feed Options
Time Frame: (Any time)   Minimum number of replies: (2)   Minimum number of discussing users: (0)
  |  

Page: 1   2   3   4   5   6   7   8   9   10  
Keep this page open to be updated with the newest discussions automatically.
In Zend, models are added to the view: //In a controller public function indexAction() { //Do some work and get a model $this->view->model = $model; } We can easily check that "model" exists in the view (I'm using simpletest for this): //In a unit...
Started by on , 3 posts by 3 people.  
Http://www.contentwithstyle.co.uk/content/unit-testing-controllers-with-zend-framework So.
Hi, I have a flex application build with actionscript 3 on flex builder with unit testing on it using flexUnit4. I want to build this project on my cruise control and i don't know how?
Started by on , 4 posts by 4 people.  
Build file has path to all the libraries of flex unit installed on pc or CC unit and the path to main file in your application....
Thanks Guys for the help, Finally i managed to run flex on CI which with ant .
Not familiar with cruise-control.
I'd like to write (in c#) a unit-test for an MVC controller action which might return one view or the other, depending on whether the request is authenticated. How can this be done? Thanks in advance.
Started by on , 3 posts by 3 people.  
Something like this ( Moq using): var request = new Mock<HttpRequestBase>(); request.SetupGet(x => x.IsAuthenticated).Returns(true); // or false var context = new Mock<HttpContextBase>(); context.SetupGet(x =&... .
You can mock your Request.
Ask your Facebook Friends
I have been using unit testing for controllers with the 'poor man's' dependency injection technique. Each controller inherits from a base controller to query data for the master page. How do I unit test the controller with it inheriting from base controller...
Started by on , 4 posts by 4 people.  
Maybe by having a interface on your datacontext and have your datacontext injected then implement a mock of the interface that returns you the data without hitting the database Code would look something like this: public class HomeController : BaseController... .
I have seen many crazy methods to get access to private variables when unit testing. The most mind blowing I've seen is #define private public . However, I've never seen anyone suggest turning off private variables at the compiler level. I had always ...
Started by on , 4 posts by 4 people.  
In general, unit tests are meant to test the interface try to use only the public interface....
Define class struct #define private public #define protected public ^_^ I would argue that unit tests should not need access to private members.
I'm starting to get into Unit Testing, Dependancy Injection and all that jazz while constructing my latest ASP.NET MVC project. I'm to the point now where I would like to Unit Test my Controllers and I'm having difficulty figuring out how to appropriately...
Started by on , 5 posts by 5 people.  
Public QuestionsController(IQuestionsRepository the default constructor....
Something like this: public class SqlQuestionsRepository(); // Really only called during unit testing...
In this case you'd only be calling the setter during unit testing.
When using Cruise Control to build an iPhone XCode project with Unit Tests, an error of "Code Sign error: a valid provisioning profile matching the application's Identifier 'com.yourcompany.Calculator' could not be found" is generated. This isn't encountered...
Started by on , 3 posts by 3 people.  
By default, it had assigned the Unit Test Bundle to be built against the....
IPhone (with the -target command line option) The problem was caused by the addition of the Unit dragged the Unit Tests target into the main project Target.
I'm currently writing some methods that do some basic operations on form controls eg Textbox, Groupbox, these operations are generic and can be used in any application. I started to write some unit tests and was just wondering should I use the real form...
Started by on , 3 posts by 3 people.  
If it's the actual controls you're trying to unit test on System.....
If you're trying to unit test the application logic by simulating interaction with the UI controls the controller methods from your unit tests.
Some of my controller actions need to respond with different ViewResults depending whether or not they were called by an AJAX request. Currently, I'm using the IsAjaxRequest() method to check for this. When this method is called during a unit test, it...
Started by on , 3 posts by 3 people.  
Find an answer to your question on this page: Unit Testing Ajax Actions in ASP.Net MVC Controllers.
I've read a lot of Zend controller testing tutorials but I can't find one that explains how to test a controller that uses models and mocking those models. I have the following controller action:- function indexAction(){ // Get the cache used by the application...
Started by on , 4 posts by 4 people.  
Is what a controller for unit tests! One possible solution that a colleague put forward is to use a Zend.
Your business logic layer, models etc.
controllers are not a good fit unit testing.
Page: 1   2   3   4   5   6   7   8   9   10  
Related Searches
control unit    traction control unit    camera control unit    "Control Unit" "    SALE OF THE DISPLAY CONTROL UNIT    ignition control unit transalp    "control unit"    ibiza climate control unit manual   
More Information


Forum Search About Omgili Help Plugins Forum/Board Owners Privacy

i
In Title
In Topic
In Reply
Exclude
Boost