Thanks, I get no problem of testing web application, and for GUI related test I do something similar to what Jason suggested. What I think about this is...
8383
matthias.kampen
Sep 24, 2008 4:57 pm
It looks like in your domain Problem-Entity is completely valid even though there are broken rules (a Problem without complete Solution is a valid domain...
8384
chrisholmesonline
chrisholmeso...
Sep 24, 2008 8:07 pm
There is another alternative to this: use methods instead of events. So instead of the presenter having to wire-up to the view's button-click event, the view...
8385
jasonmeckley
Sep 24, 2008 9:39 pm
do you mean presenter.DoSomething() instead of view.DoSomething()? yes this is possible, however provides less test coverage since there isn't a way (that i'm...
8386
moffdub
Sep 24, 2008 10:48 pm
My rule of thumb is one (globally accessible) repository per aggregate root....
8387
ryzamm
Sep 25, 2008 9:00 am
Hi all I'm trying to design my new project to follow DDD rules. I'm using ASP.Net MVC and NHibernate as my web framework and I'm stuck to allow developer to...
8388
Scott Millett
elbandit33
Sep 25, 2008 12:59 pm
Ok I see what you mean about having my business rules being applied dependant on the state of the problem entity, were you thinking along the lines of...
8389
jasonmeckley
Sep 25, 2008 1:08 pm
NH takes care of most db calls with flushing (session or transaction). rarely do you need to call save/delete/find/get. trying to think of NH in terms of CRUD...
8390
matthias.kampen
Sep 25, 2008 2:54 pm
... I would try to get one step further: It should be impossible to reach a certain state as long as there are broken rules. So you might check the rules on...
Make the presenter implement IViewObserver. In terms of mocking, it's dead simple as opposed to syntactic sugar that events are. In the end calling a raise...
8393
Scott Millett
elbandit33
Sep 26, 2008 9:59 am
Thanks for the suggestion. I have changed my model so that a Solution is always created for each problem, this solution has a category which is an enumeration...
8394
ryzamm
Sep 26, 2008 6:20 pm
Hi all I want to know the good approach when come to start TDD in DDD, do you start your test from ApplicationServices layer or do you start the test in the...
8395
Chris Gardner
chris_gardner76
Sep 26, 2008 7:39 pm
I've used both approaches. If you start TDD at the application level, however, you will tend to create only those classes truly needed to solve the...
8396
Jørn Wildt
jorn_lind_ni...
Sep 26, 2008 8:53 pm
My experience is restricted to one project only which I am initiating at the moment. It seems like there is no fixed sequence for tests: I started with some...
8397
Jørn Wildt
jorn_lind_ni...
Sep 26, 2008 9:20 pm
Does anyone have experience with customization of domain models (and, well, hmmm, entire applications)? I know "customization" is quite a broad term, so let me...
8398
Casey Charlton
caseycharlton69
Sep 27, 2008 7:36 am
I would probably defer to others on this as I have never found a "great" solution, becasue fundamentally this is a horrible thing to be doing. If the customer...
8399
Casey Charlton
caseycharlton69
Sep 27, 2008 7:43 am
Start with the user story (or requirement) ... "As a user I want to search for keywords" First test is one that takes some keywords, creates a SearchService ...
8400
Jørn Wildt
jorn_lind_ni...
Sep 27, 2008 11:02 am
... All they are asking for now is to be able to add new fields, access them read/write through the database (outside our pogram), and see the values show up...
8401
Casey Charlton
caseycharlton69
Sep 27, 2008 12:25 pm
Well if they want to change the database ... You just need to change your repository implementation to deal with entities that have a dictionary for user...
8402
S Sobótka
slaweksobotka
Sep 27, 2008 12:44 pm
Flexible attributes problem is desribed here: http://oreilly.com/catalog/9780596008673/ Solution is simple - a hash map. So your data model would look...
8403
ryzamm
Sep 27, 2008 2:53 pm
How about if i want to stick that State is a Value Object and i want to store it to the State table itself. So when it comes to save into the database who will...
8404
Andreas Ohlund
andreas_ohlund
Sep 27, 2008 5:22 pm
Ayende has written a nice series of posts about multi tenancy that might give you some ideas: ...
8405
Jørn Wildt
jorn_lind_ni...
Sep 27, 2008 5:54 pm
... Yep, but that does not mean failure - that means future bussiness for us :-) But you are right about the warning and it needs special attention in the...
8406
Jonathan Harley
agilista
Sep 27, 2008 7:04 pm
It depends what you already have; how far into the project you are. Before you write any code, write a test. I generally start with the higher level classes...
8407
ryzamm
Sep 28, 2008 12:54 am
For me we can have a few option when comes to design Value Object First we focus on Shared Value Object. The first rule need to follow is to make sure Shared...
8408
Jonathan Harley
agilista
Sep 28, 2008 6:29 pm
The class that uses the value object stores its reference via the repository for the using object. ... -- A long habit of not thinking a thing wrong, gives it...
8409
ryzamm
Sep 28, 2008 7:39 pm
I think we need to separate Value Object to 2 types. One is initial list value object and another one is runtime value object (i'm not sure the term is correct...
8410
Jonathan Harley
agilista
Sep 28, 2008 7:47 pm
Okay. If you are referring to the maintenance of value objects then, for the purpose of maintenance, do we temporarily treat the value objects (in any other...
8411
billhamaker
Sep 29, 2008 2:08 pm
Forgetting the implementation details for the moment to do it in a sophisticated way what you need is to have a "metadata" component of your domain model. If...