Build Robust Web Apps in the Real WakeUpAndCode.com * aka ASP.NET 5 before RC1.

Slides:



Advertisements
Similar presentations
Design Principles & Patterns
Advertisements

The Future of Web WakeUpAndCode.com.
ASP.NET Programming with C# and SQL Server First Edition Chapter 8 Manipulating SQL Server Databases with ASP.NET.
JUnit testing and Spring How to benefit from Spring support for jUnit during development.
Beginner - WakeUpAndCode.com.
For WakeUpAndCode.com. Introduction > Variables, Operators & Loops > Classes & Methods > Files & Exceptions Additional Topics.
Presenter - Donn Felker.  Senior Consultant for Microsoft Gold Certified Partner- Statêra.  8 years of experience in developing and architecting enterprise.
Jump-starting Your Startup with WakeUpAndCode.com Icons/graphics from: iconarchive.com.
@benday #vslive Better Unit Tests through Design Patterns: Repository, Adapter, Mocks, and more… Benjamin
Build Robust Web Apps in the Real WakeUpAndCode.com.
Testing Web Services Unit Testing, Data Layer Testing, Web API Controllers Testing, Integration Testing Web Services & Cloud SoftUni Team testing Technical.
Windows Web Xbox Mobile … and WakeUpAndCode.com.
Company Confidential – Do Not Duplicate 2 Copyright 2008 McLane Advanced Technologies, LLC S.O.L.I.D. Software Development Achieving Object Oriented Principles,
Introduction to ASP.NET MVC Information for this presentation was taken from Pluralsight Building Applications with ASP.NET MVC 4.
Test Driven Development Arrange, Act, Assert… Awesome Jason Offutt Software Engineer Central Christian Church
Analysis of SQL injection prevention using a filtering proxy server By: David Rowe Supervisor: Barry Irwin.
IOS and Android with Windows Azure Websites Name Title Address Website.
Enterprise Java Beans. Model 1 J2EE – Web View Model/View/Controller Model View Control Data base Web Server Model One Architecture HTTP Request HTTP.
Using Test Driven Development Jon Kruger Blog: Twitter: JonKruger.
Windows iOS Android … and WakeUpAndCode.com.
Build Robust Web Apps in the Real WakeUpAndCode.com.
Phase Test 2 You have been provided with a finished application available from the module web site called Phase Test 2 Sample Application. This application.
Windows 10, Universal Apps, Xbox One & WakeUpAndCode.com.
ASP.NET Core* Shahed Chowdhuri Sr. Technical WakeUpAndCode.com A Quick Overview of ASP.NET Core * aka ASP.NET 5 before.
Bob German Principal Architect Developing SharePoint Applications with MVC and Entity Framework.
©Alistair Cockburn Alistair Cockburn You Can't Be Agile if Your Architecture's a Mess “Continuous attention to technical.
ASP.NET Core* Shahed Chowdhuri Sr. Technical WakeUpAndCode.com A Quick Overview of ASP.NET Core RC2 * aka ASP.NET 5 before.
ASP.NET Core* 1.0 The Future of Web Apps Shahed Chowdhuri
Your Host & Speaker Shahed Chowdhuri Sr. Technical Microsoft Technology Areas Enterprise Web/Software Development Game Development Mobile.
Benjamin Unit Testing & Test-Driven Development for Mere Mortals.
Unit testing of the Services Telerik Software Academy Web Services and Cloud.
1 Adding a Model. We have created an MVC web app project Added a controller class. Added a view class. Next we will add some classes for managing movies.
CS520 Web Programming Spring – Web MVC Chengyu Sun California State University, Los Angeles.
ASP.NET Core* Shahed Chowdhuri Sr. Technical WakeUpAndCode.com A Quick Overview of ASP.NET Core * aka ASP.NET 5 before.
CS520 Web Programming Spring – Web MVC Chengyu Sun California State University, Los Angeles.
ASP.NET Core* Shahed Chowdhuri Sr. Technical WakeUpAndCode.com Deploying Your Web Apps * aka ASP.NET 5 before RC1.
ASP.NET Core* in 2017 The Future of Web Apps Shahed Chowdhuri
Jim Fawcett CSE686 – Internet Programming Spring 2014
Ukázková aplikace je ke stažení na wug
ASP.NET Programming with C# and SQL Server First Edition
MeshCentral 2.0.
ASP.NET Unit Testing Unit Testing Web API SoftUni Team ASP.NET
Better Unit Tests through Design Patterns: Repository, Adapter, Mocks, and more… Benjamin
Unity 5 JumpStart Part 4: Sound Effects Shahed Chowdhuri
Jim Fawcett CSE686 – Internet Programming Spring 2012
Web Application Security
ASP.NET Core* 1.0 The Future of Web Apps Shahed Chowdhuri
Unit Testing in a Team Sparkhound Presents by Steve Schaneville
Unit Testing & Test-Driven Development for Mere Mortals
Entity Framework Core*
Unit Testing & Test-Driven Development for Mere Mortals
API Application Services
Developing on a Mac For C# Developers Shahed Chowdhuri
Unit Testing with xUnit.net-Part-2
CS5220 Advanced Topics in Web Programming Spring – Web MVC
A Quick Overview of ASP.NET Core 1.0
Unity 5 JumpStart Part 2: Ammo Collisions Shahed Chowdhuri
Part 3: Damage From Objects
Testing a persistence layer
CS5220 Advanced Topics in Web Programming Spring – Web MVC
Part 1: Player Selection & Scores
ASP.NET Core* MVC and Web API Shahed Chowdhuri
Today’s Objectives Week 12 Announcements ASP.NET
Unit Testing & Test-Driven Development for Mere Mortals
What’s new in ASP.NET Core and Entity Framework 2.2 (Preview 3)
Developing and testing enterprise Java applications
Universal Apps For Windows 10 Shahed Chowdhuri
Overview of CASSO’s EIDE Solution
Created by Atif Aziz. ELMAH means is "Error Logging Modules and Handlers". It is an application-wide error logging facility that is completely pluggable.
ASP.NET Core 2.0 The Future of Web Apps Shahed Chowdhuri
Presentation transcript:

Build Robust Web Apps in the Real WakeUpAndCode.com * aka ASP.NET 5 before RC1

Background > Getting Started > Writing and Running Tests > Dependency Injection & Mocking What’s Next?

> Nothing new to learn > Error-prone > Expensive > Slower

> Less human error > Faster! > Decreasing costs > Learning curve

Legacy New/ Improved Design Patterns S.O.L.I.D.TDDRefactorRestructure SRP OCP LSP ISP DIP

Unit TestsIntegration TestsUI Tests

public test class [Fact] for public methods without parameters [Theory] and [InlineData] for methods with parameters

Build Solution Run Tests in Test Explorer

Verify actual result against expected result Note “var” keyword

Verify that expected view equal to returned view

Temporarily ignore tests with an optional message.

Correct Views? Redirect to URL? Correct Models? HTTP Code? Mock Depen- dencies! Model Populated?

Dependency Injection Inversion of Control

In Startup: Add namespace and dependencies In Application Code: Constructor Injection Setter Injection

Mocks Pre-programmed with expected results, doesn’t actually connect to DB, behavior verification. Fakes Working examples, but not production-ready (e..g in-memory database) Stubs Provides canned answers

Smoke Tests New Features Edge Cases

Cost of Adding Unit Tests Cost of Not Having Unit Tests Bugs Features Expenses

Views & ViewModels Controllers Service Layer Repository Layer Entity Framework (ORM) SQL Server (database)

60 to 80% coverage ok?

Databases File Systems Network Resources Web Requests & Responses

Background > Getting Started > Writing and Running Tests > Dependency Injection & Mocking What’s Next?

Twitter: