Testing WebForms w/ Model-View-Presenter Erik Peterson.

Slides:



Advertisements
Similar presentations
Lab 9: Code Organization User Interface Lab: GUI Lab October 23 rd, 2013.
Advertisements

INTRODUCTION TO ASP.NET MVC AND EXAMPLE WALKTHROUGH RAJAT ARYA EFECS - OIM DAWG – 4/21/2009 ASP.NET MVC.
Fabian Vilers Hands on ASP.NET MVC.
Design for Testability: Mocks, Stubs, Refactoring, and User Interfaces Benjamin Day benday.com |
Razor. Slide 2 Remember this? Browser Web Server HTTP Request HTTP Response (Web page / code) Client code (script) Interpret request Generate HTML and.
Tutorial -01. Objective In this session we will discuss about : 1.What is MVC? 2.Why MVC? 3.Advantages of MVC over ASP.NET 4.ASP.NET development models.
By Bob Bunson  Simulation of software development project  Fictitious system from Concept to Code  Oriented around the.
Web Application Architecture: multi-tier (2-tier, 3-tier) & mvc
Joe Hummel, PhD Dept of Mathematics and Computer Science Lake Forest College Lecture 8: WebForms — Web-based.
Design for Testability: Mocks, Stubs, Refactoring, and User Interfaces Benjamin Day.
Architecture Of ASP.NET. What is ASP?  Server-side scripting technology.  Files containing HTML and scripting code.  Access via HTTP requests.  Scripting.
Entity Framework Code First End to End
ABSTRACT Zirous Inc. is a growing company and they need a new way to track who their employees working on various different projects. To solve the issue.
MVC and MVP. References enter.html enter.html
ASP.NET and Model View Control Jesper Tørresø ITNET2 F08.
Todd Snyder Development Team Lead Infragistics Experience Design Group.
Building Web Sites with ASP.NET MVC Framework Noam King CTO Sela College
The Web Architecture and ASP.NET. Slide 2 Review of the Web (1) It began with HTTP and HTML, which delivers static Web pages to browsers which would render.
DaveAndAl.net Do Application Design Patterns Make Sense in ASP.NET? Alex Homer You may like to write these down now...
Case Study + MVC Lec Error Pages By means of the page directive, a JSP can be given the responsibility of an Error page An Error JSP will be called.
CIS 451: ASP.NET Concepts Dr. Ralph D. Westfall January, 2009.
Jonathan Canfield Mavin Lisa Giss Professor Kenytt D. Avery
Architectural Patterns Support Lecture. Software Architecture l Architecture is OVERLOADED System architecture Application architecture l Architecture.
Building Secure Web Applications With ASP.Net MVC.
Session 4: HTML and Web Server Controls. Outline Creating Web Forms Using Server Controls HTML Server Controls Web Server Controls Writing ASP Code Inline.
MVC Greg Phelps Trent Spangler. AGENDA  What is MVC  Web Forms vs MVC  Example  Learn More!
The Web Developer’s Toolbox Steve Fabian e:
Getting started with ASP.NET MVC Dhananjay
ASP.Net MVC Extensibility, scalability and testability Andrew Locatelli Woodcock.
The Start Menu……..Exposed What you never knew existed.
Test-Driving ASP.NET Development Tampa Code Camp – July 15 th, 2006 Cory Foy
Presentation.
The basics of knowing the difference CLIENT VS. SERVER.
Secrets of an Umbraco Ninja Presented by : Aaron powell.com.
Mr. Justin “JET” Turner CSCI 3000 – Fall 2015 CRN Section A – TR 9:30-10:45 CRN – Section B – TR 5:30-6:45.
How to implement the Repository Pattern in an ASP.NET MVC Application Dhananjay Kumar Developer Evangelist – Infragistics Microsoft MVP
Virtual techdays INDIA │ 9 th – 11 th January 2011 ASP.Net MVC Sundararajan S │ Associate Tech Architect, Aditi Technologies.
ASP.NET MVC An Introduction. What is MVC The Model-View-Controller (MVC) is an architectural pattern separates an application into three main components:
Model View ViewModel Architecture. MVVM Architecture components.
#SPSSAN June 30, 2012 San Diego Convention Center WRITING TESTABLE CODE In SharePoint.
Intro to MVC5 Bryan Soltis Bit-Wizards - Director of Technology & Research.
Modern Development Technologies in SharePoint SHAREPOINT SATURDAY OMAHA APRIL, 2016.
The New Face of ASP.NET ASP.NET MVC, Razor, and jQuery Ido Flatow | Senior Architect | Sela | This session is.
Principled N-Tier Design or, a Solution to the Solution Problem Steve | ardalis.com Telerik, Inc.
INTRODUCTION TO MVC BY SUHA MNEIMNEH. WHAT’S THE AGENDA What is MVC? MVC components MVC vs web forms vs ASP.NET vocabulary When to create MVC application.
Presented by Alexey Vedishchev Developing Web-applications with Grails framework American University of Nigeria, 2016 Intro To MVC Architecture.
Beyond Basic Unit Testing: Mocks, Stubs, User Interfaces, and Refactoring for Testability Benjamin Day
© Copyright SELA software & Education Labs Ltd Baruch Hirsch St.Bnei Brak Israel
Model View Presenter Design Pattern Jay Smith PMO Architect and Evangelist Tyson Foods, Inc.
Introduction to ASP.NET MVC [Name] [ Address] [Blog URL]
MVC Controllers TestsMigrations Ye Olde Internet Model DB Server Router View Browser Today’s focus Controller.
Adam Schultz MVVM and WPF. MVVM Model, View, ViewModel A software architecture designed to separate out User Interface design, Business Logic, and Data.
Introduction to .NET Florin Olariu
MVC Architecture, Symfony Framework for PHP Web Apps
Building Web Applications with Microsoft ASP
Not Sure how you Should React
Unit Testing & Test-Driven Development for Mere Mortals
ASP.NET Web Forms Vs. ASP.NET MVC ASP.NET is Microsoft’s big leap after Active Server Pages (ASP), ASP.NET provides flexible and unified web development.
Top Reasons to Choose Angular. Angular is well known for developing robust and adaptable Single Page Applications (SPA). The Application structure is.
Unit Testing & Test-Driven Development for Mere Mortals
CS102 – Bilkent University
Lecture 1: Multi-tier Architecture Overview
Model-View-Controller (MVC) Pattern
Rich single page applications with SharePoint
Unit Testing & Test-Driven Development for Mere Mortals
Implementing Security in ASP.NET Core: Claims, Patterns, and Policies
MVC Controllers.
MVC Controllers.
ASP.NET MVC Imran Rashid CTO at ManiWeber Technologies.
ASP.NET and Model View Control
Presentation transcript:

Testing WebForms w/ Model-View-Presenter Erik Peterson

What is MVP? A design pattern, similar to Model-View- Controller, which allows for separation of concerns Allows for testability via the Presenter

MVP vs MVC The MVC way (code-behind): In the beginning, we had code-behind, and it was good In the beginning, we had code-behind, and it was good Business logic wound up closely tied to the UI Business logic wound up closely tied to the UI The new ASP.NET MVC Framework Gets rid of the.NET heavy-weight webform model Gets rid of the.NET heavy-weight webform model

MVP vs MVC The MVP way: Model is the same Model is the same View is the.aspx and code-behind View is the.aspx and code-behind Controller is the Presenter Controller is the Presenter Still have the webform model Still have the webform model

Model Where the data lives Defines structure and relation of data in your system Defines structure and relation of data in your system

View Handles the UI Contains the controls (server, HTML, etc) Contains the controls (server, HTML, etc) Handles data rendering, layout, etc Handles data rendering, layout, etc Implements interface to allow communication with the Presenter Implements interface to allow communication with the Presenter

Presenter Where the business logic lives Interacts with model to retrieve relevant data Interacts with model to retrieve relevant data Passes data to the view, retrieves necessary info from the view Passes data to the view, retrieves necessary info from the view Can use dependency injection for testability Can use dependency injection for testability

Model Presenter View MVP From Up High

Our Demo We want to view a list of players on our football team We want to be able to add a player to our team We want to be able to remove a player from our team

Where do we begin? Retrieving players, load them to the view Front end vs. Back end And now, to the code!

Questions? Blog: