Sometimes there is the need to change the return value of an expectation to a Mock with a value based on parameters used in the call. Suppose you need to create a mock, and want to verify that the method DoInt() gets called with a value greater than 42 and it should return the value [...]

kick it on DotNetKicks.com

Continue reading about Change return value of a mock based on parameters in Rhino mocks

One of the coolest feature of Tfs2010 is Lab Management, an infrastructure tool that permits you to manage Virtual Environment to test your applications. Once you have defined some template machine in SCVMM you can import them into your Lab to be used in defining Virtual Environment. When you imported all the templates you need [...]

kick it on DotNetKicks.com

Continue reading about Deploy a solution and a database in a Lab Management Virtual Environment

alkampfer on June 29th, 2010

I really believe that such a word (Hackability) does not exists but a tweet I saw minutes ago makes me think a little bit, the tweet was this one I hear about WordPress blogs getting hacked HOURLY. What is it about WP that makes it so hacker friendly? The answer is simple IMHO, wordpress is [...]

kick it on DotNetKicks.com

Continue reading about Hackability

I have a simple scenario, I have an application deployed internally with click once, and some of the internal versions are made avaliable externally. The problem is that I need to change the application configuration file before deploying them to production server. To accomplish this you can simply locate the file applicationname.exe.config.deploy in the deploy [...]

kick it on DotNetKicks.com

Continue reading about Changing application configuration file from a deployed click once application

alkampfer on June 28th, 2010

I have a winform application that is distributed internally through a dev server with IIS, the application is distributed in the address http://10.8.0.5:10444/MyApplicationNameInternal/publish.htm This application is deployed for internal use and test, and when it is stable it gets deployed to customers machine. To avoid problem I need simply to take the version deployed in [...]

kick it on DotNetKicks.com

Continue reading about Move a click once deployed application between servers