Re: Re: testing the domain model

"Caleb Cushing [email protected] [domaindrivendesign]" <[email protected]> Tue, 07 Jul 2015 21:55:12 +0000
Newsgroups gmane.comp.programming.domain-driven-design
Message-ID <CAAHKNRH=QvWKPv=22VSwCQ8w_jzLmZF=yr6b7yYRARZz-U_EGA@mail.gmail.com>
>
>
> could you post the sourcecode of one of your tests? For now I understood
> that there are three aggregates: Organization, User and Test. The Test
> aggregate is the system under test an in particular you want to test its
> Submit method. Is that right? Looking at a few - or at least one - of your
> tests would greatly help in understanding the problem at hand.
>
> sadly I cannot, I was actually pink slipped last week (startup running out
of money). I'm still interested in this problem because I don't want to
repeat the mistake.

and yes you're right there are 3 aggregates there, though I know we had
some examples that only involved 1 or 2 (User is almost always involved).
For example Tests have effective dates and states like in review, effective
date was modeled as an entity, but not really it's own aggregate root. Most
of these things needing testing were actually service tests. Too many of
those tests ended up being couple to the persistence layer.







-- 
Caleb Cushing

http://xenoterracide.com