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

Tham khảo tài liệu 'pro .net extreme programming 2006 phần 8', công nghệ thông tin, kỹ thuật lập trình phục vụ nhu cầu học tập, nghiên cứu và làm việc hiệu quả | CHAPTER 15 SECOND ITERATION 219 try OdbcConnection dataConnection new OdbcConnection OdbcCommand dataCommand new OdbcCommand dataConnection Build command string StringBuilder commandText new StringBuilder SELECT FROM Products WHERE ProductName LIKE searchString OdbcDataReader dataReader while product new Product 0 1 3 5 6 product catch Exception e Error return products You should do the same for the UserData and CategoryData classes in the DataLayer project as well as for the CategoryTests ProductTests ShoppingCartTests and UserTests classes in the TestLayer. Then rerun all your unit tests to make sure that you have not introduced any errors. 220 CHAPTER 15 SECOND ITERATION Design Meeting As in the previous iteration design meetings occur on a daily basis. The design for this iteration is shown in Figure 15-1. Customer Order OrderDetail customer D user Name CompanyName address city postal Code country phoneNumber orderlD customer orderDate shipDate shipName shipAddress shipCity shipPostalCode shipCountry order ID product ID unrtPnce quantityOrdered discount CustomerData OrderData OrderDetailData FindByCustomerByCustomerlD FindCustomerByUserName FindOrdersByCustomerlD FindOrderByOrderlD FindOrderDetailByOrderlD Figure 15-1. The design for the second iteration Developers Duties Again the teams pair up and develop the user stories they have chosen to work on for this iteration. Here we will focus on one of the five stories in the second iteration Display Checkout Confirmation. Developing the .

TỪ KHÓA LIÊN QUAN