Search the web
Sign In
New User? Sign Up
testdrivendevelopment · Test-driven Development
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Show off your group to the world. Share a photo of your group with us.

Best of Y! Groups

   Check them out and nominate your group.

Messages

  Messages Help
Advanced
Messages 27217 - 27250 of 28575   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Simplify | Expand   (Group by Topic) Author Sort by Date ^
27217
... Definitely, but I find most often the extracted class is an encapsulated implementation detail that is only used by the class you extracted it from. ... ...
Colin Jack
colin.jack
Offline Send Email
Jan 1, 2008
9:44 am
27219
... And you also may be able to simplify the tests on the class the new class was extracted from. -- Bill Wake William.Wake@... www.xp123.com...
William Wake
wwake2
Offline Send Email
Jan 1, 2008
2:29 pm
27220
Can I ask what you would do if the new class was not extracted to remove duplication and is only used in one place, such as when you extract a class to make...
Colin Jack
colin.jack
Offline Send Email
Jan 1, 2008
2:47 pm
27221
... Thats my feeling. Although you are right that TypeMock doesn't force you create nice decoupled designs I've also seen people do some very odd things in...
Colin Jack
colin.jack
Offline Send Email
Jan 1, 2008
3:13 pm
27222
Greetings Colin, I think that's a judgment call. I personally prefer to not get in the game of which things I think can be potentially reusable. I find that ...
Jeff Langr
jlangr
Offline Send Email
Jan 1, 2008
7:07 pm
27223
... Well, I generally try to test classes from the "outside" (that is I don't want to get over-coupled to internal details), so I share your concern. But if...
William Wake
wwake2
Offline Send Email
Jan 1, 2008
7:41 pm
27224
... Your rules about when to use interfaces in the domain seem sensible to me, though we don't even put interfaces on services until there is a need (and so...
Colin Jack
colin.jack
Offline Send Email
Jan 1, 2008
8:57 pm
27225
... You don't test that your Front Controller correctly dispatches to the appropriate Service? Maybe you don't because you don't have to write code for that. ...
J. B. Rainsberger
nails762
Offline Send Email
Jan 2, 2008
1:06 am
27226
Hi Vishal... I've been holding off answering in the hopes that someone else might have a better answer but since there hasn't been a great response yet I'll...
Justin Bozonier
justinbozonier
Offline Send Email
Jan 2, 2008
2:54 am
27230
For a top down approach I would wirte a test for a method like this: public void ChargeCustomer(Customer customer, Money amount) { // implementation } I think...
Emanuele DelBono
codiceplastico
Offline Send Email
Jan 2, 2008
5:39 am
27231
With an interface. Sent from my iPhone ... Your rules about when to use interfaces in the domain seem sensible to me, though we don't even put interfaces on...
Brian Leahy
brianleahy76
Offline Send Email
Jan 2, 2008
5:39 am
27232
... Sorry yeah, but we use TypeMock so we'd be testing against the concrete class. ... In my experience its common to have logic within one domain entity that...
Colin Jack
colin.jack
Offline Send Email
Jan 2, 2008
8:26 am
27233
I realized I didn't explain why I was asking the questions. I'm interested in how you go about using mocking within the domain as a tool to help you drive...
Colin Jack
colin.jack
Offline Send Email
Jan 2, 2008
10:33 am
27234
... Nay, view A must know view B. Not the other direction. Alan...
Alan Baljeu
alanbaljeu
Offline Send Email
Jan 2, 2008
1:51 pm
27235
... To that I reply, study Martin Fowler's pages. It details many patterns and gives the motives, advantages, and difficulties of each. I arrived at my...
Alan Baljeu
alanbaljeu
Offline Send Email
Jan 2, 2008
1:55 pm
27236
Martin Fowler wrote (http://martinfowler.com/eaaDev/ModelViewPresenter.html): Upon further study and reflection, I decided that pattern that was here under the...
alanb@...
alanbaljeu
Offline Send Email
Jan 2, 2008
5:03 pm
27237
Alan, I will try to read your list and straighten out my fuzzy ideas. But just for now, here's my aim: use humble dialog; have a layer (presenter?) between the...
Donaldson, John (GEO)
geo_johnfr
Offline Send Email
Jan 2, 2008
5:15 pm
27238
... I'm not sure if there is already a name for this, but this is how I typically separate the view and presenter. -- Cory Foy http://www.cornetdesign.com...
Cory Foy
cory_foy
Offline Send Email
Jan 2, 2008
5:48 pm
27239
Hi All, Thanks to assistance from folks at SourceForge, the nunit.org site is once again in synch with nunit.com and shows the latest info about NUnit. Charlie...
Charlie Poole
cpoole98370
Offline Send Email
Jan 2, 2008
10:59 pm
27240
... Which kind of logic? Pure domain logic? or service logic like persistence or participating in a transaction? The former belongs, and the latter does not. ...
J. B. Rainsberger
nails762
Offline Send Email
Jan 2, 2008
11:59 pm
27241
... Pure domain logic, our domain model doesn't participate in transactions or persistence or anything else like that. In fact our domain layer really only...
Colin Jack
colin.jack
Offline Send Email
Jan 3, 2008
9:40 am
27242
Thanks for your input Cory. I hope to get some from others too. However, I do have a question. Read below. Remember that the point of this thread is to...
Alan Baljeu
alanbaljeu
Offline Send Email
Jan 3, 2008
2:55 pm
27243
My understanding of the difference between MVC and MVP is that in MVC, the view is allowed to access the model directly (all three parts have equal rights to...
Donaldson, John (GEO)
geo_johnfr
Offline Send Email
Jan 3, 2008
5:47 pm
27244
... It's not MVC because there is no model in his code. In MVC there is a real bonafide model which is completely independent of all presentation issues, and...
Alan Baljeu
alanbaljeu
Offline Send Email
Jan 3, 2008
6:03 pm
27245
We have been doing TDD,and have done mostly state-based testing,and have used mocks when we needed to talk to database or an external service like...
vishal_sodani
Offline Send Email
Jan 3, 2008
7:32 pm
27246
That is MVP as I know it. Sent from my iPhone On Jan 2, 2008, at 12:46 PM, Cory Foy <usergroup@...> wrote: ... I'm not sure if there is already a...
Brian Leahy
brianleahy76
Offline Send Email
Jan 3, 2008
7:32 pm
27247
... Thanks for your input Brian. In fact, many people are doing "MVP" but there are many flavours which makes the term confusing. I take it that you follow...
Alan Baljeu
alanbaljeu
Offline Send Email
Jan 3, 2008
7:54 pm
27248
I have created a set of pages on the NUnit web site to list extensions created for use with NUnit. Right now it's a bit sparse but I'll add to it as I receive...
Charlie Poole
cpoole98370
Offline Send Email
Jan 3, 2008
8:23 pm
27249
... Nit-pick. The two are not identical, although BDD has its origins in the pro-mock community in London. ... At some point you'll need some of this kind of...
Steve Freeman
smg_freeman
Offline Send Email
Jan 3, 2008
10:36 pm
27250
This is my understanding of the difference: In MVP the View is in charge but delegates logic to the presentor, the presentor will then interact with the model...
Brian Leahy
brianleahy76
Offline Send Email
Jan 4, 2008
1:08 am
Messages 27217 - 27250 of 28575   Oldest  |  < Older  |  Newer >  |  Newest
Advanced
Add to My Yahoo!      XML What's This?

Copyright © 2007 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help