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

Design and Architecture

 
GeneralRe: Unity Pin
Luc Pattyn11-Jun-08 10:27
sitebuilderLuc Pattyn11-Jun-08 10:27 
GeneralRe: Unity Pin
Pete O'Hanlon11-Jun-08 10:52
mvePete O'Hanlon11-Jun-08 10:52 
QuestionPost-hoc unit testing, and increasing the unit test coverage rate? Pin
Philip Laureano5-Jun-08 13:51
Philip Laureano5-Jun-08 13:51 
AnswerRe: Post-hoc unit testing, and increasing the unit test coverage rate? Pin
led mike6-Jun-08 4:34
led mike6-Jun-08 4:34 
RantRe: Post-hoc unit testing, and increasing the unit test coverage rate? Pin
Philip Laureano6-Jun-08 5:03
Philip Laureano6-Jun-08 5:03 
GeneralRe: Post-hoc unit testing, and increasing the unit test coverage rate? Pin
Pete O'Hanlon6-Jun-08 8:25
mvePete O'Hanlon6-Jun-08 8:25 
GeneralRe: Post-hoc unit testing, and increasing the unit test coverage rate? Pin
Roger Alsing8-Jun-08 22:34
Roger Alsing8-Jun-08 22:34 
QuestionArchitecture vs TDD Pin
Nathan Gloyn5-Jun-08 9:58
Nathan Gloyn5-Jun-08 9:58 
I hope somebody can offer me some guidance as I'm a little stuck and not sure what exactly to do.

I have a nicely designed system that has utilised a couple of abstract classes which then have concrete classes implementing them.

I'm using the base classes to encapsulate functionality that is applicable across the objects but only use the concrete classes in the application with each concrete class being used in a specific way (so that you wouldn't swap one out for the other)

I've run into an issue unit testing, trying to use [Moq] as it is unable to mock a class that inherits from an abstract base class where the methods and properties are not virtual.

The only way out of the situation is to either create interfaces specific to each of the classes that inherit from the abstract base (which seems pointless to me, since I'd implement an interface, have current concrete class implement the interface and then replace all instances where concrete class was used with interface) or I have to mark the methods and properties of the base class as virtual and cause a performance problem.

I don't like either option and wondered if anybody had come across a similar situation and how they had resolved it?
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 
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 

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.