Click here to Skip to main content
15,883,623 members
Home / Discussions / Design and Architecture
   

Design and Architecture

 
QuestionRe: About MVP architecture Pin
led mike11-Aug-08 4:53
led mike11-Aug-08 4:53 
AnswerRe: About MVP architecture Pin
alex.barylski12-Aug-08 22:45
alex.barylski12-Aug-08 22:45 
QuestionWhat is the proper Domain Model for this relationship? Pin
Togakangaroo7-Aug-08 8:09
Togakangaroo7-Aug-08 8:09 
GeneralMaking a menu editable. Pin
Brady Kelly7-Aug-08 4:46
Brady Kelly7-Aug-08 4:46 
GeneralRe: Making a menu editable. Pin
Pete O'Hanlon7-Aug-08 4:56
mvePete O'Hanlon7-Aug-08 4:56 
GeneralRe: Making a menu editable. Pin
Ray Cassick9-Aug-08 8:04
Ray Cassick9-Aug-08 8:04 
GeneralRe: Making a menu editable. Pin
Brady Kelly11-Aug-08 3:37
Brady Kelly11-Aug-08 3:37 
QuestionCommand pattern implementation for testing Pin
Nathan Gloyn4-Aug-08 4:43
Nathan Gloyn4-Aug-08 4:43 
I'm curently trying to simplify testing in my company by enabling the use of the command pattern.

So I need:

Command - interfact/abstract class defining public contract for concrete commands
ConcreteCommand - and command to use
Receiver - class that receives command to execute
Invoker - class that invokes the command on the receiver.

Ok so this is all standard GOF stuff, where I'm scratching my head is the implementation of the command and receiver classes.

We use selenium for testing the web apps UI and will make a call something like:

selenium.Click("link")
or
selenium.GetXPathCount("//div[@id='ctl00_MainContent_pnlWork']/table/tbody/tr")

What I want to do is enable a developer to create a command to perform a selenium action such as the code above (ok technically they're 2 different commands since one has a return and one doesn't) but I don't want to have to create a concrete class for each type of selenium action i.e. method but at the same time in my receiver class I don't want to have a huge switch statement that caters for each type of command.

I didn't want to pass the receiver to the concrete command object as I have other types of command I need, such as db commands, which need different receivers and where possible would like to use a generic interface for the receivers to enable easy expansion in the future (I already have 3 potential receivers and this may grow).

I'm using C# and Asp.Net with the .Net 3.5 framework.

Any help appreciated.



AnswerRe: Command pattern implementation for testing Pin
led mike5-Aug-08 5:17
led mike5-Aug-08 5:17 
GeneralRe: Command pattern implementation for testing Pin
Nathan Gloyn5-Aug-08 6:10
Nathan Gloyn5-Aug-08 6:10 
GeneralRe: Command pattern implementation for testing Pin
led mike5-Aug-08 6:47
led mike5-Aug-08 6:47 
GeneralRe: Command pattern implementation for testing Pin
Nathan Gloyn5-Aug-08 23:58
Nathan Gloyn5-Aug-08 23:58 
GeneralRe: Command pattern implementation for testing [modified] Pin
led mike6-Aug-08 5:44
led mike6-Aug-08 5:44 
QuestionPerformance in Web applications versus Web site projects in Visual Studio Pin
heidihund1-Aug-08 1:38
heidihund1-Aug-08 1:38 
QuestionRe: Performance in Web applications versus Web site projects in Visual Studio Pin
led mike1-Aug-08 5:43
led mike1-Aug-08 5:43 
AnswerRe: Performance in Web applications versus Web site projects in Visual Studio Pin
Paul Conrad1-Aug-08 8:28
professionalPaul Conrad1-Aug-08 8:28 
AnswerRe: Performance in Web applications versus Web site projects in Visual Studio Pin
Paul Conrad1-Aug-08 8:29
professionalPaul Conrad1-Aug-08 8:29 
AnswerRe: Performance in Web applications versus Web site projects in Visual Studio Pin
Nicholas Butler1-Aug-08 22:34
sitebuilderNicholas Butler1-Aug-08 22:34 
Questionwant to create a cms in asp Pin
nibinki33331-Jul-08 8:04
nibinki33331-Jul-08 8:04 
QuestionRe: want to create a cms in asp Pin
led mike31-Jul-08 8:39
led mike31-Jul-08 8:39 
AnswerRe: want to create a cms in asp Pin
Paul Conrad2-Aug-08 18:50
professionalPaul Conrad2-Aug-08 18:50 
AnswerRe: want to create a cms in asp Pin
alex.barylski12-Aug-08 22:46
alex.barylski12-Aug-08 22:46 
QuestionDynamic DB Connection based on user type Pin
vicky45730-Jul-08 19:30
vicky45730-Jul-08 19:30 
QuestionRe: Dynamic DB Connection based on user type Pin
led mike31-Jul-08 7:23
led mike31-Jul-08 7:23 
AnswerRe: Dynamic DB Connection based on user type Pin
vicky45731-Jul-08 10:31
vicky45731-Jul-08 10:31 

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.