Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 883801
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T12:39:07+00:00 2026-05-15T12:39:07+00:00

Ive been learning MVC2 and MVVM lately and I think it works like this.

  • 0

Ive been learning MVC2 and MVVM lately and I think it works like this.

ASP.NET MVC2 – Can test the whole web site using unit tests

ASP.NET MVC2 + jquery web service calls – Can no longer just use MSTest unit test. What is the MS product to test the javascript side?

ASP.NET Webforms – Unit Tests are near impossible when the coder doesnt create the Webforms site with Testing in mind. Therefore Asp.NET web performance tests are the closest thing to testing that is realistic. Coded UI Tests are too trivial to really be useful for things like ASP.NET validators.

ASP.NET Webforms + jquery web service calls – Can only unit test the web service calls. Cannot use Web Performance tests because of javsscript calls. Need some sort of javascript testing framework.

Silverlight – No tests. Maybe Coded UI Tests.

Silverlight MVVM – Use silverlight unit test framework to test ViewModel similiar to MVC.

Silverlight MEF – How does MEF affect testing scenerios if at all ?

Is this accurate? Is there anything I am missing ?

I am trying to make a argument to the people in charge that we should use MVC over Webforms so that we can create automated testing. As it is we are doing Webforms all in one project and impossible to test so people just test off of manual scripts 🙁

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T12:39:08+00:00Added an answer on May 15, 2026 at 12:39 pm

    Rather than specifying the reasons why you should use MVC over Webforms, I’d take a step back and sell the management team on why you should use unit tests. After that’s sold you have a case of saying that MVC would allow you to do this more efficiently than webforms.

    Are you looking at going the full TDD route, or just creating tests after? I’d highly recommend going down the TDD path even though it does have a steeper learning curve and will lessen your productivity while you are learning it.

    Since you are already looking into testing, you probably know most of these, but I’ll re-iterate some of the benefits:

    Less defects get through to QA.

    Tests can be created for issues that QA and customers find.

    Designing for testing creates a more loosely coupled application which tend to be more maintainable.

    Increased developer confidence when making changes leading to sustained productivity as the application code base matures.

    Tests are great documentation for new developers joining the project, as they can see what’s trying to be achieved.

    Note: the cost of fixing a defect that has made it through to production can be up to 80 x the cost of finding and fixing it in the development and QA process (I’ll try to find my source for that figure).

    Unit testing is only one piece of the puzzle though, you’ll also want to look at using a Continuous Integration server such as CruiseControl.NET to automate your builds and tests. This will make sure that everyone keeps the build in a working state.

    For an existing Webforms project you might also want to look into the Web Client Software Factory. I’ve found it to be very useful for migrating legacy webforms apps over time, though it’s a little more convoluted than MVC2.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've been learning the new ASP.NET MVC framwork lately and I've developed a test
Hopefully someone can help, I've been playing with ASP.NET MVC 2 for a learning
I've been learning about DynamicObject in .NET 4.0 and was wondering if this type
I've been learning regular expressions lately and am wondering if this is possible: I
I've been learning about UDP socket lately by browsing the net and all the
I've been learning ASP.NET MVC for about a month now and I'm certainly sold
I have been learning to develop websites using ASP.NET MVC 2 for work... and
Im new to arm assembly and ive been learning a lot from this website
I've been learning how to create WP plugins and I can for the most
As I've been learning WPF, I've been concentrating on applying only the MVVM pattern

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.