EXCEPtional training for .NET developers

TDD with .NET Training Course

NEXT COURSE
5 Nov London
request info

Capita Marks and Spencer Telefonica Cisco BBC Lloyds Sony

TDD with .NET training course (code: TDDNET)

Gain TDD Skills For .NET Applications Development - Improve Agility & Predictability Of Your Development Lifecycle


SEE MORE COURSES IN THIS CATEGORY

TRAINING COURSE OVERVIEW

Our Test-Driven Development training course using C# or VB.NET presents a number of modern practices for developing code based on an iterative and incremental development lifecycle. The course is intended as a practical course: the best way to appreciate how test-driven development works and what it feels like is to do it in practice, making sense of the principles it embodies. In this form the course is based on lecture material, demonstration, discussion and hands-on labs. However, the course can also be run as a seminar without hands-on labs, which puts more emphasis on understanding the principles through the demonstrations.

AUDIENCE

.NETdevelopers looking to acquire TDD techniques

DETAILHIGHLIGHTS

Agile Development Microprocess

Traditional versus agile development processes · Iterative and incremental development
Informal and continuous design
The role of refactoring
Refactoring versus other code changes
Extreme Programming
Test-Driven Development

Testing in Principle

Traditional view and reality of testing
Driving development through testing
Testing early, often and automatically
Testing versus debugging
White-box versus black-box testing
Functional versus operational testing

Basic Unit Testing in Practice

Test plans versus test code
Use of Assert
Testing at the interface
Testing the simplest things first
Testing incrementally
Testing correctness of failure

Overview of NUnit

NUnit and the xUnit family · 
Test fixtures and test methods · 
The role of attributes in NUnit's design · 
Assertion methods · 
Testing correctness of exceptions · 
Defining common fixture code

Test-Writing Techniques

Red, green, refactor
None to one to many
Faking it
Telling the truth
Isolated and short tests
Refactor common fixture code
Declare, prepare, assert
Test by method, state or scenario
Custom assertions

Common Refactorings

Renaming variables, methods, classes and packages
Restructuring class hierarchies by extracting interfaces, superclasses and subclasses
Partitioning classes by extracting classes and methods ·
Testing private implementation
Use of PrivateObject

Decoupling Techniques

Unmanaged dependencies
Test-driven decoupling
Layering
Reorganising packages
Eliminating cyclic dependencies
Mock objects
Use of Mock Framework (Moq or Rhino Mocks)
Eliminating Singletons, statics and other globals

Microsoft Fakes (and Shims)

Working with Frameworks and 3rd Party Libraries
Fakes and Shims
Faking Concrete Types
Configuration
Use of ShimContext
Setting up Custom implementation

  • Agility and predictability are two qualities often missing from software development.
  • A test-driven approach, in which design is grown and code delivered incrementally according to functionality or risk, forms the basis of the construction phase of an iterative and incremental development.
  • The use of unit testing provides confidence in existing code and supports the ability to refactor code as development unfolds.
  • Labs can use either NUnit (NUnit Test Adapter) or MS Test frameworks
Receive the latest version of this course into your inbox


See why people choose JBI

"At jbi even the sales team are technical so you are able to ask questions before the course"

Garima Aon

Blog (Show All)

JBI training course London UK

C# Language - Moving Forward

31/07/2018: Since the first release of .NET (in 2002) much has changed, both in the .NET Framework and the .NET languages. Notable language features added...


JBI training course London UK

React vs Angular - which framework and therefore which Training Course?

16/01/2018: React vs Angular which framework best for my organisation Speed, security and extensibility are the hallmarks of a great web service, and your...


JBI training course London UK

ASP.NET Core 2 training course | 5 Reasons why upgrade

12/01/2018: ASP.NET Core 2 is the successor to ASP.NET Core 1 and continues the theme of providing a framework for rapid creation of Web Applications making...


Case Studies (Show All)

JBI training course London UK

ASP.NET Core skills to rewrite applications for the latest Web and Database access technologies

15/01/2018: A development team had developed a range of applications using a number of .NET technologies over many years. However, in recent years the challenge...


JBI training course London UK

New MVC Core 1 skills help improve web development effort

19/10/2017: Over many years the members of this Software Engineering team have developed web applications using the popular .NET technology of ASP.NET WebForms....


JBI training course London UK

Power BI allows corporate data manipulation & visualization

13/10/2017: This organisation needed their Supply Chain department to get fully involved with Microsoft’s Power BI reporting product as soon as possible....


PUBLIC COURSES (LONDON, UK)
 

5th Nov 2018 - 3 days £1795
Book

see all dates


X

Show Discount for this course


PRIVATE COURSES


  Bring a JBI course to your office
  and train a whole team onsite
  0800 028 6400
or request quote


  You can customise this course to
  suit your exact needs here
  0800 028 6400 or request quote


Get in touch
0800 028 6400




Excellent feedback, consistently !

►"great tips help reduce build times"
► "we got access to exclusive content"
► "Short course meant less time off"

►"what an inspiring trainer !"
► "colleagues at 2 sites joined via web"
► "I passed my exam the next day"


Newsletter ! Get exclusive news about upcoming programs, technical insights & special offers