Menu ▾ ▴

#7 Core objects should be interfaces

open
nobody
API Change (2)
5
2002-10-23
2002-10-23
No

Some of the key objects for the system really should be
defined as interfaces, with separate implementations. At
a minimum, Session, Channel, and Message.

As it is, I'm finding it very difficult to write unit tests for
my profiles, since I can't make mock objects to pass in
as test fixtures.

Discussion

  • Huston Franklin

    Huston Franklin - 2002-12-05

    Logged In: YES
    user_id=164167

    Agreed! I have already started converting some of the objects.

     

Log in to post a comment.