Structures cannot be stubbed because we cannot have one structure inherit from another structure. Therefore we need to define protocols that correspond to the public interfaces of the structures and mock and pass those around instead. This is a big refactoring job but should not change the behaviour of anything.
The protocols should be named StructNameProtocol, for each structure named StructName.
Structures cannot be stubbed because we cannot have one structure inherit from another structure. Therefore we need to define protocols that correspond to the public interfaces of the structures and mock and pass those around instead. This is a big refactoring job but should not change the behaviour of anything.
The protocols should be named
StructNameProtocol
, for each structure namedStructName
.