| |
browse.develop.com
Browse.develop.com is a community that was established to collect and
organize valuable web information. Our technical staff have selected and
indexed information and courses that they feel will help you stay
current on best practices across the SDLC.
|
5 Articles match "Source Code","Unit Testing"
| Related DevelopMentor Courses | MORE | | Use Common Instance Factory to Abstract Away the Dependency Injection Container You have to select a DI container from one of numerous proprietary and open-source products on the market and then marry yourself to it. lot of DI-specific code is needed for unit tests, where there is extensive mocking, and advanced features of a DI container such as Ninject come in handy. When searching for a way to abstract away the DI container, the first solution I examined was the Common Service Locator , built by Microsoft’s Patterns and Practices group back in 2008 with the source code posted on CodePlex. Ah, but there’s a problem. DevelopMentor Courses - Wednesday, May 23, 2012 Decouple WCF Services from their DI Container with Common Instance Factory And I would certainly not use CIF for unit tests (or even some integration tests), where you need to leverage features of the DI container that are not exposed via the factory interface. In this case, you might want to use a super-fast DI container, such as SimpleInjector , for the application while leveraging a full-featured DI container, just as Ninject , for unit testing. To see examples of using CIF with WCF extensions, download samples and source code from the CIF CodePlex site. null ) { disposable.Dispose(); } } } } }. Enjoy. DevelopMentor Courses - Saturday, May 26, 2012 Building Better Applications with Team Foundation Server 2010 and Visual Studio 2010 Training How can I develop and manage tests? How do the Visual Studio visualization tools help with source control? How do I test complex applications using mocking and IoC? How can code contracts help code quality? How do I debug problems that arise during acceptance and quality test? How can I do a new build when a developer checks in code? Source Code Control: Introduction Source code control, or revision control, is the management of revisions to pieces of information that makes up a project. DevelopMentor Courses - Thursday, October 6, 2011 |
24 Articles match "Source Code","Unit Testing"
| The Latest from DevelopMentor | MORE | | Decouple WCF Services from their DI Container with Common Instance Factory And I would certainly not use CIF for unit tests (or even some integration tests), where you need to leverage features of the DI container that are not exposed via the factory interface. In this case, you might want to use a super-fast DI container, such as SimpleInjector , for the application while leveraging a full-featured DI container, just as Ninject , for unit testing. To see examples of using CIF with WCF extensions, download samples and source code from the CIF CodePlex site. null ) { disposable.Dispose(); } } } } }. Enjoy. DevelopMentor Courses - Saturday, May 26, 2012 Use Common Instance Factory to Abstract Away the Dependency Injection Container You have to select a DI container from one of numerous proprietary and open-source products on the market and then marry yourself to it. lot of DI-specific code is needed for unit tests, where there is extensive mocking, and advanced features of a DI container such as Ninject come in handy. When searching for a way to abstract away the DI container, the first solution I examined was the Common Service Locator , built by Microsoft’s Patterns and Practices group back in 2008 with the source code posted on CodePlex. Ah, but there’s a problem. DevelopMentor Courses - Wednesday, May 23, 2012 Build a Multi-Project Visual Studio Template Download the code for this article here. Earlier this year I authored an open-source toolkit, called Simple MVVM Toolkit , to help developers build Silverlight, WFP and Windows Phone applications based on the Model-View-ViewModel design pattern. To enhance developer productivity, the toolkit combines a set of helper classes with code and xml snippets, as well as Visual Studio item and project templates. Entities; namespace $safeprojectname$ { class Program { static void Main( string [] args) { // Client code goes here. } } }. saferootprojectname$.Entities Enjoy. Tony and Zuzana's World - Wednesday, September 14, 2011 | -
| The Best from DevelopMentor | MORE | - Significant Advances in Unit Testing Windows Workflow
This post describes a unit testing library for testing Windows Workflow Foundations. Rather it's a library that can be used in conjunction with any of these testing frameworks. Download the library with sample test project here: Kennedy.WorkflowTesting.zip (216 KB). You can also just jump to the code. First a Little History: Last September I posted this teaser entitled Unit Testing Coming to a Workflow Near You. Unit Testing Activities with Windows Workflow Foundation by Ron Jacobs. Unit Testing Workflow Activities by K. Michael C. Kennedy's Weblog - Sunday, January 18, 2009 - Article: Avoiding 5 Common Pitfalls in Unit Testing
Llewellyn Falco and I recently wrote an article for DevelopMentor's Developments newsletter entitled Avoiding 5 Common Pitfalls in Unit Testing. Avoiding 5 Common Pitfalls in Unit Testing. When I started out with unit tests, I was enthralled with the promise of ease and security that they would bring to my projects. In practice, however, the theory of sustainable software through unit tests started to break down. Unit Tests have become more trouble than they are worth.". When tests would stop working, we just ignored them. Michael C. Kennedy's Weblog - Thursday, August 6, 2009 - Unit Testing Coming to a Workflow Near You
[Update: See the follow up post "Significant Advances in Unit Testing Windows Workflow" ]. However you won't find very much support for Test Driven Development (TDD) or unit testing in general. In fact the architecture that makes Windows Workflow powerful (strict separation of workflow, activities, and the host for example) really gets in the way of unit tests. There has been some work done on unit testing Windows Workflows. Here's some links: Unit Testing Activities with Windows Workflow Foundation by Ron Jacobs. Michael C. Kennedy's Weblog - Tuesday, September 30, 2008 - TDD Invades Space Invaders
As a follow-up to our " Avoiding 5 Common Pitfalls in Unit Testing " article we did a webcast where we took a problem from the audience and solved it live and unrehearsed on stage. The thing to remember is that all of this was done for the sole purpose of creating a recipe for a scenario we could test. Now that we had the recipe, we could go about writing the code. Create a new test project. Translate the comments into code. Second, it translates well to code because it has behavior and objects working together. This is OK. tank shoots // 5. Michael C. Kennedy's Weblog - Wednesday, October 28, 2009 - Use Common Instance Factory to Abstract Away the Dependency Injection Container
You have to select a DI container from one of numerous proprietary and open-source products on the market and then marry yourself to it. lot of DI-specific code is needed for unit tests, where there is extensive mocking, and advanced features of a DI container such as Ninject come in handy. When searching for a way to abstract away the DI container, the first solution I examined was the Common Service Locator , built by Microsoft’s Patterns and Practices group back in 2008 with the source code posted on CodePlex. Ah, but there’s a problem. DevelopMentor Courses - Wednesday, May 23, 2012 - Simple MVVM Toolkit versus MVVM Light Toolkit
Presently MVVM Light requires a manual installation , but the download for Simple MVVM is an installer which gives you the assembly binaries, external libraries, samples and source code. It also registers the toolkit assemblies so that they appear in the Visual Studio Add References dialog, and it installs Visual Studio project and item templates, code and xml snippets. He has presented some workshops for which you can download the code, and there are some tutorials by Jesse Liberty and Chris Koenig. The Simple MVVM RIA Services project template includes this code. Tony and Zuzana's World - Saturday, April 23, 2011 - Tackling the Problem of Modal Dialogs in MVVM
One of the first issues you’ll run into when wading into the waters of MVVM is how to display model dialogs to the user while executing code in the view-model. It is notoriously difficult to test the user interface by simulating things like button clicks and mouse overs. Encapsulating functionality into a view-model means that you can test it independently of the view, which is just another consumer of the view-model. If all you care about is quickly building an app, then just use code-behind and forget about MVVM, even if everyone else is doing it. null). Tony and Zuzana's World - Friday, January 28, 2011 %>
| | |