166 reputation
3
bio website bassettprovidentia.com
location
age
visits member for 2 years, 9 months
seen May 14 '12 at 10:02

May
14
comment Should these concerns be separated into separate objects?
I think the problem is that what the Broadcaster needs from the Broadcast depends on how the Broadcaster works. For example, if it broadcasts using email, the Broadcast needs to contain an array of all email addresses to send it to. If the Broadcaster were to use SMS, it would need telephone numbers. I think that sort of data needs to be encapsulated in the Broadcaster - not the Broadcast. The Broadcast should only really consist of a subject, message and array of user roles to send to. The Broadcaster then does the work of getting the data it needs.
May
10
asked Should these concerns be separated into separate objects?
Jan
5
asked Is there a better way to design these classes?
Jan
5
awarded  Supporter
Jan
5
comment I've unit tested my class, now how do I get started with an integration test?
Thanks @Wouter. That second link is excellent, I've learned a lot from reading some of those posts.
Jan
5
awarded  Student
Jan
5
awarded  Scholar
Jan
4
asked I've unit tested my class, now how do I get started with an integration test?