Note that there are some explanatory texts on larger screens.

plurals
  1. USTormod
    primarykey
    data
    text
    plurals
    1. CODoes the ValidateIt method require access to MyParameters privates in order to validate it? Maybe you should pass MyParameters instance to ValidateIt. Alternatively, can the MyParameters validate themselves? Or maybe the functionality that you plan to achieve from the Action base class can be better implemented by owning references to actions as opposed to supertyping them?
      singulars
    2. COThank you and welcome yourself. Indeed. Mocks should reproduce behaviour. Who is better to describe the interaction with a component than the component itself? This would make the effort of strapping a testing harness on objects would be much simpler and reduceable. You simply wrap everything with which you interact by default. If the recorded interaction does not make sense to describe in a test case, for example if the interaction is nonexistent or way too intense, you should probably rethink your choice of dependency boundary. A way more pragmatic approach to the problem.
      singulars
    3. COThe decorator idea may have some merit. Though I am not sure wether or not the decorator will be able to access the knowledge necessary to discern wether the communicated blob was interesting or not. But it could be a nice way to make sure that the original datagram is intact as part of an error message payload. And it would be simple to enable/disable it through configuration. Thank you.
      singulars
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload