Test-Drive ASP.NET MVC (Paperback)

Jonathan McCracken

  • 出版商: Pragmatic Bookshelf
  • 出版日期: 2010-06-15
  • 定價: $1,088
  • 售價: 9.0$979
  • 語言: 英文
  • 頁數: 296
  • 裝訂: Paperback
  • ISBN: 1934356530
  • ISBN-13: 9781934356531
  • 相關分類: .NETASP.NET
  • 立即出貨(限量) (庫存=1)

買這商品的人也買了...

商品描述

It's testable. It's light-weight. It's open-source. It's . . . Microsoft?

Yes, finally, Microsoft has figured it out. ASP.NET MVC 2.0 lets you test drive your code, control the output of your HTML, and leverage C# and .NET in an easy-to-use web framework. This book shows you all you need to know to get started developing web applications using test-driven development (TDD). You'll learn how to do everything from creating your first test, to building REST web services, to deploying your finished ASP.NET MVC applications. Test-Drive ASP.NET MVC gets you started with all the fundamentals you need, whether you're transitioning from older Microsoft technologies, or if you're coming from an open-source background and are curious about what ASP.NET MVC has to offer.

ASP.NET MVC 2.0 is C# on the web done right. No more fiddling around with Viewstate, IsPostBack(), and drag-and-drop coding. Microsoft has addressed the shortcomings of ASP.NET and created a framework that goes toe-to-toe with other popular web frameworks such as Ruby on Rails. Programming in C# is fun again!

This book takes a test-first approach to the main features of ASP.NET MVC. You'll get hands-on experience building and deploying a time-management web application from start to finish. From building your first page, to data access, to integrating with web services such as Blogger.com, Test-Drive ASP.NET MVC guides you step by step. You'll come away with a complete understanding of web services and data access, and you'll learn how to test each component so that your code is bug-free and maintainable from the start. You'll see how to handle security, logging, and error handling.

Software isn't useful until it's deployed into production. We'll cover automated deployment using MSBuild, a build tool product that can help you get your site online, repeatably and reliably. Throughout, you'll work with open source projects that complement ASP.NET MVC, including NHibernate, MVCContrib, and Castle Windsor Container. These tools speed up developing database components, architecture layers, and testing your code.

As you build and deploy your application, you'll not only learn the framework itself, but also gain valuable experience with the test-first methodology, driving your application development through small and measurable incremental improvements.

商品描述(中文翻譯)

這是一本關於使用測試驅動開發(TDD)來開發網絡應用程式的書籍。它介紹了微軟的ASP.NET MVC 2.0框架,該框架可以讓您測試代碼、控制HTML輸出,並使用C#和.NET進行網絡開發。無論您是從舊的微軟技術轉換過來,還是從開源背景轉換過來,對ASP.NET MVC感興趣,這本書都能幫助您入門。

ASP.NET MVC 2.0是正確的C#網絡開發方式。不再需要處理Viewstate、IsPostBack()和拖放編碼。微軟解決了ASP.NET的不足之處,創建了一個與其他流行的網絡框架(如Ruby on Rails)相媲美的框架。再次使用C#編程變得有趣!

這本書以測試為先的方式介紹了ASP.NET MVC的主要功能。您將親身體驗從頭到尾構建和部署一個時間管理網絡應用程式的過程。從構建第一個頁面,到數據訪問,再到與Blogger.com等網絡服務集成,Test-Drive ASP.NET MVC將逐步引導您。您將全面了解網絡服務和數據訪問,並學習如何測試每個組件,以確保代碼從一開始就無錯誤且易於維護。您還將學習如何處理安全性、日誌記錄和錯誤處理。

軟件在部署到生產環境之前是沒有用的。我們將介紹使用MSBuild進行自動部署,這是一個可以幫助您可靠地將網站上線的構建工具。在整個過程中,您將使用與ASP.NET MVC相輔相成的開源項目,包括NHibernate、MVCContrib和Castle Windsor容器。這些工具可以加快開發數據庫組件、架構層和測試代碼的速度。

在構建和部署應用程式的過程中,您不僅將學習框架本身,還將通過小而可測量的增量改進,獲得有價值的測試驅動開發經驗。