Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Arrow up icon
GO TO TOP
Practical Test-Driven Development using C# 7

You're reading from   Practical Test-Driven Development using C# 7 Unleash the power of TDD by implementing real world examples under .NET environment and JavaScript

Arrow left icon
Product type Paperback
Published in Feb 2018
Publisher
ISBN-13 9781788398787
Length 442 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Authors (2):
Arrow left icon
 Callaway Callaway
Author Profile Icon Callaway
Callaway
 Hunt Hunt
Author Profile Icon Hunt
Hunt
Arrow right icon
View More author details
Toc

Table of Contents (21) Chapters Close

Title Page
Packt Upsell
Foreword
Contributors
Preface
1. Why TDD is Important FREE CHAPTER 2. Setting Up the .NET Test Environment 3. Setting Up a JavaScript Environment 4. What to Know Before Getting Started 5. Tabula Rasa – Approaching an Application with TDD in Mind 6. Approaching the Problem 7. Test-Driving C# Applications 8. Abstract Away Problems 9. Testing JavaScript Applications 10. Exploring Integrations 11. Changes in Requirements 12. The Legacy Problem 13. Unraveling a Mess 14. A Better Foot Forward 1. Other Books You May Enjoy Index

Testing direction


Now that you have a basic plan for your architecture you have to think about where you should begin your testing. There are a few options for where to start:

  • You could choose to start testing at the data access or data source layers and work your way up to the user interface layers. This method is a back-to-front approach to testing.
  • You could start at the user interface layers and work your way to the data access layers. Approaching the tests in this manner is a front-to-back method of testing.
  • Lastly, you could start testing in the business layers and work your way out to the hexagonal boundaries of the system. This method is an inside-out testing approach.

As a demonstration of the three testing directions to be examined, the same scenario of user login will be used.

Back-to-front

Most back-end developers have been taught to think in a database-first manner. This style of thinking will lead them to find that a back-to-front style of testing makes more sense. As mentioned previously...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime
Visually different images