| |
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.
|
4 Articles match "Helper","Unit Testing"
| Related DevelopMentor Courses | MORE | | Essential ASP.NET MVC Training How can I build unit tests for my MVC application? Day 2 Html Helpers While a goal of MVC is to allow developers a high degree of control over their markup, it is still desirable to provide conveniences for rendering common markup. This is why MVC includes Html Helpers. We will then see how to create your own custom Html helpers. We'll see how it uses validation helpers, ModelState, data annotations and the IValidatableObject interface. Mocking & Testing MVC Unit testing is one of the main motivators for MVC. DevelopMentor Courses - Wednesday, February 22, 2012 Guerrilla ASP.NET MVC and HTML5 Training How can I build unit tests for my MVC application? How can I test my HTML and JavaScript? Day 2 Html Helpers While a goal of MVC is to allow developers a high degree of control over their markup, it is still desirable to provide conveniences for rendering common markup. This is why MVC includes Html Helpers. We will then see how to create your own custom Html helpers. We'll see how it uses validation helpers, ModelState, data annotations and the IValidatableObject interface. This module discusses strategies for unit testing your code. DevelopMentor Courses - Monday, June 27, 2011 Essential ASP.NET MVC Training How can I build unit tests for my MVC application? Day 3 Html helpers While a goal of MVC is to allow developers a high degree of control over their markup, it is still desirable to provide conveniences for rendering common markup. This is why MVC includes Html Helpers. We will then see how to create your own custom Html helpers. Validation In this module we examine how MVC provides both a client-side and a server-side validation model using validation helpers, ModelState, data annotations and the IValidatableObject interface. Now covers ASP.NET MVC 3! DevelopMentor Courses - Tuesday, March 1, 2011 |
9 Articles match "Helper","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. good example is the SimpleMvmRiaServices project template shown in the first screenshot, which generates a Visual Studio solution with three projects: an ASP.NET Web project, a Silverlight client project, and a Test project for unit tests. Download the code for this article here. Visual Studio makes it extremely easy to create a single-project template. This is where the IWizard project comes in. Enjoy. Tony and Zuzana's World - Wednesday, September 14, 2011 Simple MVVM Toolkit versus MVVM Light Toolkit Part 2 demonstrates navigation, messaging, dependency injection, unit testing and async operations. In addition Simple MVVM includes a multi-project Visual Studio template that supplies a Silverlight client, a WCF RIA Services web host, and a Unit Testing project. Lastly, Simple MVVM has direct support for dependency injection with MEF (Managed Extensibility Framework) and unit testing (for example with the Silverlight Unit Testing Framework). When it comes to deciding which toolkit best suites your needs, there is a spectrum of choices. Tony and Zuzana's World - Saturday, April 23, 2011 Unit Testing with services in MVVM Helpers This is also a requirement when you would like to unit test your application, but there’s a slightly different twist to it. When unit testing, we need to either provide these dependencies in some way, or provide alternatives to them. As a starting point, let’s use Visual Studio to generate a unit test (this is not TDD, just basic unit testing as we’ve already written the method!) If you right click on the method, you should find a Create Unit Tests… option: In the resulting dialog, you can choose what you’d like to test. Mark's Blog of Random Thoughts - Wednesday, March 9, 2011 | -
| The Best from DevelopMentor | MORE | - 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 - Simple MVVM Toolkit versus MVVM Light Toolkit
Part 2 demonstrates navigation, messaging, dependency injection, unit testing and async operations. In addition Simple MVVM includes a multi-project Visual Studio template that supplies a Silverlight client, a WCF RIA Services web host, and a Unit Testing project. Lastly, Simple MVVM has direct support for dependency injection with MEF (Managed Extensibility Framework) and unit testing (for example with the Silverlight Unit Testing Framework). When it comes to deciding which toolkit best suites your needs, there is a spectrum of choices. Tony and Zuzana's World - Saturday, April 23, 2011 - 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. good example is the SimpleMvmRiaServices project template shown in the first screenshot, which generates a Visual Studio solution with three projects: an ASP.NET Web project, a Silverlight client project, and a Test project for unit tests. Download the code for this article here. Visual Studio makes it extremely easy to create a single-project template. This is where the IWizard project comes in. Enjoy. Tony and Zuzana's World - Wednesday, September 14, 2011 - Article: 10 Features in.NET 4.0 that made Me Smile
Code contracts allow you to assert truths about your code as if you are writing a unit test. But there is also a class similar to the Html class (for HTML helpers) called Ajax. I recently wrote another article for DevelopMentor 's Developments newsletter (not subscribed yet? see top-right of this page ). This one is entitled. 10 Features in.NET 4.0 that made Me Smile. Read it on the DevelopMentor website: [link]. am republishing it below for you all to enjoy on your RSS readers. Cheers, Michael. 10 Features in.NET 4.0 that made Me Smile. Here’s an example. ll wait. Michael C. Kennedy's Weblog - Wednesday, December 16, 2009 - Unit Testing with services in MVVM Helpers
This is also a requirement when you would like to unit test your application, but there’s a slightly different twist to it. When unit testing, we need to either provide these dependencies in some way, or provide alternatives to them. As a starting point, let’s use Visual Studio to generate a unit test (this is not TDD, just basic unit testing as we’ve already written the method!) If you right click on the method, you should find a Create Unit Tests… option: In the resulting dialog, you can choose what you’d like to test. - Article: 10 Features in.NET 4.0 that made Me Smile
Code contracts allow you to assert truths about your code as if you are writing a unit test. But there is also a class similar to the Html class (for HTML helpers) called Ajax. I recently wrote another article for DevelopMentor 's Developments newsletter (not subscribed yet? see top-right of this page ). This one is entitled. 10 Features in.NET 4.0 that made Me Smile. Read it on the DevelopMentor website: [link]. am republishing it below for you all to enjoy on your RSS readers. Cheers, Michael. 10 Features in.NET 4.0 that made Me Smile. Here’s an example. ll wait. Michael C. Kennedy's Weblog - Wednesday, December 16, 2009 - MVVM: Introducing the message visualizers
In this post, I will go over the simple message visualizers available in the MVVM Helpers toolkit. The CanExecute handler for each of them will test the Title property – ensure there is a value there, and the inbound parameter (the Message) and make sure there is a value there as well. Notice that I test to ensure the visualizer is available – remember that services can be replaced or removed – I might do this in my unit tests for example (I actually mock the interface rather than replace it, but you get the point – test to make sure it’s there). par ?? %>
| | |