Click here to Skip to main content
15,887,135 members
Home / Discussions / Design and Architecture
   

Design and Architecture

 
QuestionArchitecture vs TDD Pin
Nathan Gloyn5-Jun-08 9:58
Nathan Gloyn5-Jun-08 9:58 
GeneralRe: Architecture vs TDD Pin
stavinski6-Jun-08 10:37
stavinski6-Jun-08 10:37 
GeneralRe: Architecture vs TDD Pin
Nathan Gloyn8-Jun-08 8:54
Nathan Gloyn8-Jun-08 8:54 
GeneralRe: Architecture vs TDD Pin
Pete O'Hanlon8-Jun-08 8:58
mvePete O'Hanlon8-Jun-08 8:58 
GeneralRe: Architecture vs TDD Pin
Nathan Gloyn8-Jun-08 9:33
Nathan Gloyn8-Jun-08 9:33 
GeneralRe: Architecture vs TDD Pin
Pete O'Hanlon8-Jun-08 10:16
mvePete O'Hanlon8-Jun-08 10:16 
AnswerRe: Architecture vs TDD Pin
Roger Alsing8-Jun-08 22:22
Roger Alsing8-Jun-08 22:22 
GeneralRe: Architecture vs TDD Pin
Nathan Gloyn9-Jun-08 0:37
Nathan Gloyn9-Jun-08 0:37 
The application is fairly standard, its a web application broken down into 3 layers Presentation, Business Logic and DataAccess.

Within the data access layer we have an abstract base class that encapsulates standard db access and then we have concrete classes to encapsulate the data access for different parts of the application to different databases. Within the Business logic layer a class will use a specific concrete classes to perform their data access.

Inside the business logic layer we have an abstract class that again encapsulates standard functionality used by the concrete classes representing entities.

I'm only using mock objects in relation to testing the business logic layer and am using a mixture of the 2 types of mock you describe (not in the same test).

I have been using the community edition of TypeMock and it does exactly what I want but the problem is that I am unable to use code coverage inside VSTS with the community edition and it is doubtful that the company will pay for the licence which is why I have had to look into other Mock frameworks which has lead me to run into the issue of not being able to mock.

In relation to your type 1 mock how would you go about using an interface when the class you are attempting to mock is unique within the app? Or am I just being dense here and you would simply replace the class interface with an explict interface and implement that in the class? Even if you do this it just 'feels' wrong having to create interfaces where a concrete class would work (from an application point of view)

I would value your thoughts.



GeneralRe: Architecture vs TDD [modified] Pin
Roger Alsing9-Jun-08 1:46
Roger Alsing9-Jun-08 1:46 
Questionmember function or not? Pin
followait1-Jun-08 22:38
followait1-Jun-08 22:38 
AnswerRe: member function or not? Pin
Cedric Moonen4-Jun-08 22:34
Cedric Moonen4-Jun-08 22:34 
GeneralRe: member function or not? Pin
followait5-Jun-08 18:49
followait5-Jun-08 18:49 
GeneralRe: member function or not? Pin
Cedric Moonen5-Jun-08 20:02
Cedric Moonen5-Jun-08 20:02 
GeneralRe: member function or not? Pin
followait6-Jun-08 3:31
followait6-Jun-08 3:31 
GeneralRe: member function or not? Pin
Cedric Moonen6-Jun-08 4:23
Cedric Moonen6-Jun-08 4:23 
GeneralRe: member function or not? Pin
Member 276708410-Jun-08 3:34
Member 276708410-Jun-08 3:34 
QuestionAuto Complete Extender Pin
wantToLearn1-Jun-08 13:56
wantToLearn1-Jun-08 13:56 
AnswerRe: Auto Complete Extender Pin
Pete O'Hanlon1-Jun-08 21:56
mvePete O'Hanlon1-Jun-08 21:56 
QuestionManaging of Tab order in a Smart client application Pin
bluemoon200829-May-08 20:10
bluemoon200829-May-08 20:10 
AnswerRe: Managing of Tab order in a Smart client application Pin
led mike30-May-08 4:24
led mike30-May-08 4:24 
Questionbusiness use case Pin
mehrdadc4827-May-08 8:03
mehrdadc4827-May-08 8:03 
AnswerRe: business use case Pin
led mike27-May-08 8:30
led mike27-May-08 8:30 
GeneralRe: business use case Pin
Member 276708410-Jun-08 3:51
Member 276708410-Jun-08 3:51 
QuestionASP.NET Authentication and Scalability [modified] Pin
Waleed Eissa21-May-08 21:46
Waleed Eissa21-May-08 21:46 
Questionclass XXX and class XXXImpl Pin
Ahmed Charfeddine20-May-08 23:52
Ahmed Charfeddine20-May-08 23:52 

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.