Click here to Skip to main content
15,913,685 members
Home / Discussions / Design and Architecture
   

Design and Architecture

 
QuestionDelete - Undo Pin
dabs10-Jun-08 14:43
dabs10-Jun-08 14:43 
AnswerRe: Delete - Undo Pin
led mike11-Jun-08 4:45
led mike11-Jun-08 4:45 
QuestionProtocol for communicating over socket ? Pin
Noctris10-Jun-08 12:24
Noctris10-Jun-08 12:24 
AnswerRe: Protocol for communicating over socket ? Pin
Ray Cassick10-Jun-08 13:51
Ray Cassick10-Jun-08 13:51 
QuestionRe: Protocol for communicating over socket ? Pin
Noctris10-Jun-08 23:04
Noctris10-Jun-08 23:04 
AnswerRe: Protocol for communicating over socket ? Pin
led mike11-Jun-08 4:30
led mike11-Jun-08 4:30 
QuestionCreating controls on the fly approach???? Pin
rulllesss8-Jun-08 22:27
rulllesss8-Jun-08 22:27 
AnswerRe: Creating controls on the fly approach???? Pin
led mike10-Jun-08 4:27
led mike10-Jun-08 4:27 
QuestionObject Orientated Programming - Association,Composition and Aggregation (Multiple Languages) Pin
Tom Moore7-Jun-08 11:06
Tom Moore7-Jun-08 11:06 
AnswerRe: Object Orientated Programming - Association,Composition and Aggregation (Multiple Languages) Pin
stavinski8-Jun-08 0:30
stavinski8-Jun-08 0:30 
GeneralRe: Object Orientated Programming - Association,Composition and Aggregation (Multiple Languages) Pin
Member 276708410-Jun-08 3:10
Member 276708410-Jun-08 3:10 
GeneralRe: Object Orientated Programming - Association,Composition and Aggregation (Multiple Languages) Pin
Hasan Jaffal17-Jun-08 3:42
Hasan Jaffal17-Jun-08 3:42 
GeneralUnity Pin
Brady Kelly6-Jun-08 2:20
Brady Kelly6-Jun-08 2:20 
JokeRe: Unity Pin
Pete O'Hanlon6-Jun-08 4:00
mvePete O'Hanlon6-Jun-08 4:00 
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 

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.