• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
TDD with ASP.NET MVC 1.0
 

TDD with ASP.NET MVC 1.0

on

  • 1,612 views

TDD with ASP.NET MVC 1.0

TDD with ASP.NET MVC 1.0

Statistics

Views

Total Views
1,612
Views on SlideShare
1,598
Embed Views
14

Actions

Likes
0
Downloads
37
Comments
0

4 Embeds 14

http://www.linkedin.com 8
http://www.slideshare.net 4
http://www.lmodules.com 1
https://www.linkedin.com 1

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    TDD with ASP.NET MVC 1.0 TDD with ASP.NET MVC 1.0 Presentation Transcript

    • Test Driven Development with ASP.NET MVC 1.0 Shiju Varghese http://weblogs.asp.net/shijuvarghese
    • Session Objectives
      • Introduction to ASP.NET MVC
      • Introduction to TDD
      • Demonstrate TDD with ASP.NET MVC
    • What’s wrong with ASP.NET WebForm
      • ViewState
      • Page life cycle
      • Limited control over rendered HTML
      • Lack of Separation of Concerns (SoC)
      • Untestable
    • What is MVC
      • A design pattern
      • Acronym for Model View Controller
      • Isolating business logic from UI
      • Layering for UI layer
      • Separation of Concerns (SoC)
        • Separate content from presentation and data-processing (model) from content
    • What is MVC
      • View is just concerned about presentation logic
      • Models represent the data
      • Controllers just handle application flow
      • You write less code and end up with a more maintainable application.
    • What is ASP.NET MVC
      • An alternative framework to ASP.NET Web Forms.
      • More control over your HTML
      • A more easily testable framework
      • Simply an option
        • Will not a replacement for Web Form
        • Build on top of ASP.NET
      • Opinionated Framework
        • Community Driven Framework
    • Goals of ASP.NET MVC Framework
      • Enable clean separation of concerns
        • Each component has one responsibility
          • Single Responsibility Principle (SRP)
          • Highly testable and maintainable application
      • Testable by default (built with TDD in mind)
        • Red/Green/Refactor TDD
      • Enable full control over the rendered HTML
      • Enable clean URLs and HTML
        • SEO and REST friendly URL structures
    • Goals of ASP.NET MVC Framework
      • Extensible and Pluggable framework.
        • Interface-based architecture
        • Support replacing any component of the system
        • Support third-party view engines such as NVelocity, Brail, NHaml
        • Support user-provided front controller that enable Inversion of Control containers
      • Build on top of ASP.NET
      • Support static and dynamic languages
      • Conventions and Guidance
    • Test Driven Development
      • Requirement identified
      • Write an automated test
      • Run tests and make sure new one FAILS
      • Write some code
      • Run tests to make sure all PASS
      • Refactor
      • Repeat
    • Test Driven Development
      • Unit Test Frameworks for .NET:
        • NUnit
        • Visual Studio Test Framework
        • xUnit.NET
    • Mock Objects
      • In object-oriented programming, mock objects are simulated objects that mimic the behavior of real objects in controlled ways.
        • Moq
        • Rhino Mocks
    • Demo
    • Questions?
    • Thanks Shiju Varghese E-Mail : [email_address] Blog : http:// weblogs.asp.net/shijuvarghese Twitter : http:// twitter.com/shijucv