Click here to Skip to main content
15,877,675 members
Home / Discussions / Design and Architecture
   

Design and Architecture

 
GeneralCommunicating the Reason for Method Failure Pin
Brady Kelly9-Mar-09 2:58
Brady Kelly9-Mar-09 2:58 
GeneralRe: Communicating the Reason for Method Failure Pin
Luc Pattyn9-Mar-09 3:16
sitebuilderLuc Pattyn9-Mar-09 3:16 
GeneralRe: Communicating the Reason for Method Failure Pin
Brady Kelly9-Mar-09 3:18
Brady Kelly9-Mar-09 3:18 
GeneralRe: Communicating the Reason for Method Failure Pin
Luc Pattyn9-Mar-09 3:32
sitebuilderLuc Pattyn9-Mar-09 3:32 
GeneralRe: Communicating the Reason for Method Failure Pin
Mark Churchill9-Mar-09 13:47
Mark Churchill9-Mar-09 13:47 
GeneralRe: Communicating the Reason for Method Failure Pin
led mike10-Mar-09 5:54
led mike10-Mar-09 5:54 
GeneralRe: Communicating the Reason for Method Failure Pin
Brady Kelly10-Mar-09 5:58
Brady Kelly10-Mar-09 5:58 
GeneralA re-introduction to TDD Pin
Brady Kelly9-Mar-09 2:09
Brady Kelly9-Mar-09 2:09 
I don't know where else to post this, so here goes:

I've been out of touch with TDD for some time, and am very rusty. I'd appreciate some suggestions on how to TDD the method described below.

The method must find a web.config file in a user supplied application directory. It must then extract and return a connection string from that config file. It returns null if for any reason the connection string isn't found, be it a bad path, no web.config, or no connection string in web.config.

My initial thoughts are to write a test with setup that creates a directory and writes a web.config file with a connection string. The test would then call my method with the created path and expect a non-null value back, and my initial test run would fail because my method stub always returns null. Then, implement the method, and run the test expecting a pass. Then, as a pre-test (I forget the term), delete the created directory, and call the method expecting a null value.



GeneralHigh Level Design for Installation and Upgrade Application Pin
Brady Kelly6-Mar-09 8:49
Brady Kelly6-Mar-09 8:49 
GeneralRe: High Level Design for Installation and Upgrade Application Pin
Jonathan Davies8-Mar-09 4:11
Jonathan Davies8-Mar-09 4:11 
GeneralRe: High Level Design for Installation and Upgrade Application Pin
Brady Kelly8-Mar-09 4:25
Brady Kelly8-Mar-09 4:25 
GeneralRe: High Level Design for Installation and Upgrade Application Pin
Jonathan Davies8-Mar-09 5:25
Jonathan Davies8-Mar-09 5:25 
GeneralRe: High Level Design for Installation and Upgrade Application Pin
Brady Kelly8-Mar-09 5:47
Brady Kelly8-Mar-09 5:47 
QuestionCache Manager design problem Pin
Steve Holdorf28-Feb-09 9:07
Steve Holdorf28-Feb-09 9:07 
QuestionRe: Cache Manager design problem [modified] Pin
Steve Holdorf28-Feb-09 14:34
Steve Holdorf28-Feb-09 14:34 
AnswerRe: Cache Manager design problem Pin
Steve Holdorf1-Mar-09 9:53
Steve Holdorf1-Mar-09 9:53 
QuestionReverse engineering the vc++ project Pin
hariakuthota19-Feb-09 22:28
hariakuthota19-Feb-09 22:28 
AnswerRe: Reverse engineering the vc++ project Pin
bobbery19-Feb-09 23:12
bobbery19-Feb-09 23:12 
AnswerRe: Reverse engineering the vc++ project Pin
Han van Roosmalen3-Mar-09 20:55
Han van Roosmalen3-Mar-09 20:55 
QuestionResource Allocation Logic Pin
Nagarajan Mohan18-Feb-09 2:52
Nagarajan Mohan18-Feb-09 2:52 
QuestionDesign question about layers and MVC Pin
Fernando A. Gomez F.14-Feb-09 11:56
Fernando A. Gomez F.14-Feb-09 11:56 
AnswerRe: Design question about layers and MVC Pin
Jonathan Davies18-Feb-09 3:11
Jonathan Davies18-Feb-09 3:11 
Question.net Serializable DTO Pin
mokrala12-Feb-09 6:14
mokrala12-Feb-09 6:14 
QuestionBuilding a relational graph from a large build enlistment Pin
Adam Dare9-Feb-09 18:01
Adam Dare9-Feb-09 18:01 
AnswerRe: Building a relational graph from a large build enlistment Pin
Jonathan Davies18-Feb-09 3:22
Jonathan Davies18-Feb-09 3:22 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.