| |
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.
|
12 Articles match "Templates","Unit Testing"
| Related DevelopMentor Courses | MORE | | I fail at TDD? I’ve been working on a new project (an implementation of the Mustache template language in C# that I’m calling Nustache ) and have been having a lot of fun with it. While writing the test for my Scanner class, I wrote it so that it would assert on the sequence of tokens it returns. It represents a span of characters from the source template that is not supposed to be evaluated and just rendered directly to the output. figured this would be the easiest way to start testing my Scanner class. At this point, I was able to compile and run my test. DevelopMentor Courses - Friday, October 29, 2010 Code Smarter with a Day of Design Patterns Training Why use Design Patterns Strategy and Template Creation Patterns State Decorator Reuse solutions, not just code. Wrap your head around the concept of the design pattern; a programming solution or template that can be used in many different situations, and discover new tools for creating successful software. Strategy and Template What we can be 100% sure of with software is that constantly needs to evolve.? The strategy and template patterns allow us to build solutions that can evolve without the risk of effecting existing well tested code. ? DevelopMentor Courses - Friday, March 23, 2012 Essential ASP.NET MVC Training How can I build unit tests for my MVC application? We will also see Razor's support for reusable templates with partial views and layout templates. Mocking & Testing MVC Unit testing is one of the main motivators for MVC. This module discusses strategies for unit testing your code. We will see using a mocking framework to implement fakes for testing as well as developing helper libraries for common tasks while unit testing. What are controllers, how do they get invoked and how do they accept input? DevelopMentor Courses - Wednesday, February 22, 2012 |
12 Articles match "Templates","Unit Testing"
| The Latest from DevelopMentor | MORE | | Build a Multi-Project Visual Studio Template 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. After installing the toolkit, all a developer needs to do to get started is open Visual Studio and create a new project by selecting one the project templates that appear under the Mvvm category. Visual Studio makes it extremely easy to create a single-project template. Simply select Export Template from the File menu and follow the prompts. Download the code for this article here. saferootprojectname$.Entities Tony and Zuzana's World - Wednesday, September 14, 2011 Screencast: Real-World MVVM with WCF RIA Services The tutorial also demonstrates how to build unit tests against a ViewModel and run them asynchronously. Here are the main steps you perform: Create a new project in Visual Studio 2010 using the SimpleMvvmRiaServices project template installed by the Simple MVVM Toolkit. The template creates a solution with three projects : a Silverlight project, a Unit Testing project, and a Web Host project. The Silverlight and Test projects reference the Simple MVVM Toolkit and contain all the required classes. Great news! Bind controls to ViewModel properties. Tony and Zuzana's World - Thursday, April 28, 2011 Simple MVVM Toolkit versus MVVM Light Toolkit 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. Part 2 demonstrates navigation, messaging, dependency injection, unit testing and async operations. Both Simple MVVM and MVVM Light toolkits ship with Visual Studio project and item templates, as well as some code snippets. would say that the project templates for MVVM Light are rather basic. Each project template includes a ReadMe file with step-by-step instructions. Tony and Zuzana's World - Saturday, April 23, 2011 | -
| The Best from DevelopMentor | MORE | - Build a Multi-Project Visual Studio Template
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. After installing the toolkit, all a developer needs to do to get started is open Visual Studio and create a new project by selecting one the project templates that appear under the Mvvm category. Visual Studio makes it extremely easy to create a single-project template. Simply select Export Template from the File menu and follow the prompts. Download the code for this article here. saferootprojectname$.Entities Tony and Zuzana's World - Wednesday, September 14, 2011 - Keep Dependency Injection Simple with MEF
Having to click through screens to test an application can be tedious and time-consuming, and it may not provide good code coverage or regression testing. By abstracting the View into a separate ViewModel, you can independently test the ViewModel to make sure it behaves as expected. The unit testing framework is simple another consumer of the View-Model. Whether or not you subscribe to the tenants of Test-Driven Development (TDD), you should test your ViewModels without any dependency on WCF services or databases. Enter Dependency Injection ! Tony and Zuzana's World - Tuesday, March 8, 2011 - Simple MVVM Toolkit versus MVVM Light Toolkit
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. Part 2 demonstrates navigation, messaging, dependency injection, unit testing and async operations. Both Simple MVVM and MVVM Light toolkits ship with Visual Studio project and item templates, as well as some code snippets. would say that the project templates for MVVM Light are rather basic. Each project template includes a ReadMe file with step-by-step instructions. Tony and Zuzana's World - Saturday, April 23, 2011 - Screencast: Real-World MVVM with WCF RIA Services
The tutorial also demonstrates how to build unit tests against a ViewModel and run them asynchronously. Here are the main steps you perform: Create a new project in Visual Studio 2010 using the SimpleMvvmRiaServices project template installed by the Simple MVVM Toolkit. The template creates a solution with three projects : a Silverlight project, a Unit Testing project, and a Web Host project. The Silverlight and Test projects reference the Simple MVVM Toolkit and contain all the required classes. Great news! Bind controls to ViewModel properties. Tony and Zuzana's World - Thursday, April 28, 2011 - Inversion of control and WCF
The are lots of reasons for doing so but in the end they mostly boil down to separation of concern which makes thing more modular and thereby easier to reuse and unit test. have start by creating a very standard WCF service using the WCF Service Application template. Lots of people like to use in inversion of control container, usually shortened to IOC, to inject dependencies into classes. The problem is that you don’t always control the object creation and therefor are not always able to insert dependencies into the constructor, even when using an IOC container. Bind ().ToConstant(Kernel); The Problem Solver - Tuesday, April 19, 2011 - Simple Mvvm Toolkit Version 2.0: Better and Even Easier to Use
Launch SimpleMvvmInstaller.exe and you’ll get the whole shebang: binaries, project and item templates, code snippets, samples and source code, copied to the SimpleMvvmToolkit directory in your Program Files folder. Visual Studio integration is nice, but the killer feature of v2 is the new Visual Studio project templates. You heard right, the installer not only gives you the item templates and code snippets you had in v1, but it also provides four project templates : Silverlight, Windows Phone, WPF and RIA Services. I have just released version 2.0 Press F5 and voila! Tony and Zuzana's World - Wednesday, April 13, 2011 - I fail at TDD?
I’ve been working on a new project (an implementation of the Mustache template language in C# that I’m calling Nustache ) and have been having a lot of fun with it. While writing the test for my Scanner class, I wrote it so that it would assert on the sequence of tokens it returns. It represents a span of characters from the source template that is not supposed to be evaluated and just rendered directly to the output. figured this would be the easiest way to start testing my Scanner class. At this point, I was able to compile and run my test. DevelopMentor Courses - Friday, October 29, 2010 %>
| | |