tailieunhanh - Pro .NET 2.0 Extreme Programming 2006 phần 6

Điều này cho phép bạn để có được thông tin phản hồi tự động, khoảng thời gian thường xuyên, liên quan đến chất lượng của mã đang được phát triển. CCNet cung cấp phản hồi này bằng cách cho phép bạn biết khi phá vỡ xây dựng, | CHAPTER 13 FIRST ITERATION 151 Developing the Login User Story The first user story that we are going to develop is Login. In iteration planning Chapter 12 this story was broken down into the following tasks Create login screen Create text entry fields for username and password Build query to database to validate username and password Determine login request success or failure Before you begin you need to clean up the Northwind solution you created in Appendix A. Delete any empty default classes that were autogenerated by the IDE or web pages or and any test classes you created and the associated class . If you did not create the Northwind solution in Appendix A do that now. The first task that you are going to work on is the one to validate the username and password against the database. Note The source code presented here is not meant to necessarily show the best way to code a .NET web application. The source code is intentionally kept as basic and simple as possible so that you can focus on the XP technique of developing software in a .NET environment. Apress has many great books on C and the .NET Framework that you can refer to for thorough coverage of those topics. Build Query to Database to Validate Username and Password Task The Login user story has one business class and one data class that need unit tests. You are going to code iteratively so you will start with the smallest unit test possible. Using the test-driven development approach you start with the file shown in Listing 13-1 which you need to add to the TestLayer project. You will need to add a reference to the BusinessLayer and DataLayer projects on the TestLayer project if you have not done so already. Listing 13-1. File region Using directives using System using using using using BusinessLayer using DataLayer endregion 152 CHAPTER .

TỪ KHÓA LIÊN QUAN
crossorigin="anonymous">
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.