C# and .NET Core Test Driven Development: Dive into TDD to create flexible, maintainable, and production-ready .NET Core applications
暫譯: C# 與 .NET Core 測試驅動開發:深入 TDD 以創建靈活、可維護且準備投入生產的 .NET Core 應用程式
Ayobami Adewole
- 出版商: Packt Publishing
- 出版日期: 2018-05-18
- 售價: $1,610
- 貴賓價: 9.5 折 $1,530
- 語言: 英文
- 頁數: 300
- 裝訂: Paperback
- ISBN: 1788292480
- ISBN-13: 9781788292481
-
相關分類:
TDD 測試導向開發
海外代購書籍(需單獨結帳)
買這商品的人也買了...
-
嵌入式系統設計實務-電路與驅動程式$250$225 -
Using SQLite (Paperback)$1,800$1,710 -
ASP.NET 本質論$520$442 -
$700Professional Scrum Development with Microsoft Visual Studio 2012 (Paperback) -
SQL Server 效能調校$450$351 -
Beginning Big Data with Power BI and Excel 2013: Big Data Processing and Analysis Using PowerBI in Excel 2013 (Paperback)$1,670$1,587 -
$474系統分析與設計:敏捷疊代方法(原書第6版) -
IoT Solutions in Microsoft's Azure IoT Suite: Data Acquisition and Analysis in the Real World$3,290$3,126 -
$857深度學習 -
演算法之美:隱藏在資料結構背後的原理 (C++版)$650$507 -
$534JSON 實戰 -
$284大數據技術 -
手機攝影必學 BOOK:用OX帶你學會拍人物、食物、風景等情境照片$398$299 -
創意競擇:從賈伯斯黃金年代的軟體設計機密流程,窺見蘋果的創意方法、本質與卓越關鍵$460$391 -
Web 開發者一定要懂的駭客攻防術 (Web Security for Developers: Real Threats, Practical Defense)$420$332 -
資料科學的統計實務 : 探索資料本質、扎實解讀數據,才是機器學習成功建模的第一步$599$473 -
Martin Fowler 的企業級軟體架構模式:軟體重構教父傳授 51個模式,活用設計思考與架構決策 (Patterns of Enterprise Application Architecture)$800$624 -
我懂了!專案管理 (暢銷紀念版)$400$316 -
電腦視覺機器學習實務|建立端到端的影像機器學習 (Practical Machine Learning for Computer Vision: End-To-End Machine Learning for Images)$780$616 -
Learning Blazor: Build Single-Page Apps with Webassembly and C# (Paperback)$2,185$2,070 -
ASP.NET Core Razor Pages in Action (Paperback)$2,300$2,185 -
無瑕的程式碼 軟體工匠篇:程式設計師必須做到的紀律、標準與倫理 (Clean Craftsmanship: Disciplines, Standards, and Ethics)$720$562 -
從源頭就優化 - 動手開發自己的編譯器實戰$880$695 -
UX 商業價值實現之道|打造成功的數位產品服務 (UX for Business: How to Design Valuable Digital Companies)$780$616 -
建構可擴展系統|設計分散式架構 (Foundations of Scalable Systems: Designing Distributed Architectures)$780$616
商品描述
Key Features
- Offers practical advice in creating tests to quickly detect and resolve issues when writing portable code
- Uncovers code integration issues that improve code quality by using continuous integration
- Set up and use data-driven unit testing to verify your code over a range on inputs
Book Description
This book enables developers to create robust, production-ready C# 7 and .NET Core applications by establishing a professional test-driven development process. To do this, we will begin by learning the stages of the TDD lifecycle, some best practices, and some anti-patterns.
After covering the basics of TDD in the first chapter, we will get right into creating our ASP.NET Core MVC sample application. We will learn how to write testable code with SOLID principles, and will set up dependency injection for our sample application. Next, we will take a good look at the xUnit testing framework, and learn how to use its attributes and assertions. When we start writing our tests, we will learn what "Fact" vs. "Theory" means in .NET Core unit testing, as well as how to use each. When we get the basic in place, we will learn how to create data-driven unit tests and how to mock dependencies in our code. We will learn the differences between running and debugging our tests on .NET Core on LINUX, versus Windows and Visual Studio. We will wrap up by creating a healthy continuous integration process for our sample application, using GitHub, TeamCity, and Cake. Finally, we will modify the CI build to test, version, and package our sample application.
What you will learn
- Write flexible, maintainable, verifiable code for .NET Core
- Learn how to write testable code using SOLID principles and dependency injections
- Recognize the characteristics of a good unit test
- How to structure and group your unit test
- Use mock objects to handle dependencies
- How to set up a continuous integration process from end-to-end
商品描述(中文翻譯)
**主要特點**
- 提供實用建議,幫助快速檢測和解決撰寫可攜式程式碼時的問題
- 揭示透過持續整合改善程式碼品質的程式碼整合問題
- 設置並使用資料驅動的單元測試,以驗證您的程式碼在各種輸入下的表現
**書籍描述**
本書使開發人員能夠通過建立專業的測試驅動開發(TDD)流程,創建穩健的、可投入生產的 C# 7 和 .NET Core 應用程式。為此,我們將首先學習 TDD 生命週期的各個階段、一些最佳實踐以及一些反模式。
在第一章涵蓋 TDD 基礎知識後,我們將直接開始創建我們的 ASP.NET Core MVC 範例應用程式。我們將學習如何使用 SOLID 原則撰寫可測試的程式碼,並為我們的範例應用程式設置依賴注入。接下來,我們將仔細研究 xUnit 測試框架,並學習如何使用其屬性和斷言。當我們開始撰寫測試時,我們將了解在 .NET Core 單元測試中「Fact」與「Theory」的含義,以及如何使用它們。當基本架構就緒後,我們將學習如何創建資料驅動的單元測試以及如何模擬程式碼中的依賴。我們將學習在 LINUX 上運行和調試 .NET Core 測試與在 Windows 和 Visual Studio 上的區別。我們將通過使用 GitHub、TeamCity 和 Cake 為我們的範例應用程式創建一個健康的持續整合流程來結束本書的內容。最後,我們將修改 CI 構建以測試、版本控制和打包我們的範例應用程式。
**您將學到的內容**
- 為 .NET Core 撰寫靈活、可維護、可驗證的程式碼
- 學習如何使用 SOLID 原則和依賴注入撰寫可測試的程式碼
- 辨識良好單元測試的特徵
- 如何結構和分組您的單元測試
- 使用模擬物件來處理依賴
- 如何從頭到尾設置持續整合流程
