A typed, generic implementation of the ConfigurableResponse primitive used alongside OutputTracker and EventEmitter to build null objects that can be seeded with pre configured responses (including errors) for tests.
Forked and generified from EkoLite, the public dojo demo from ekohacks.
A null wrapper (e.g. FileStorage.createNull()) is used in tests instead of a real implementation. ConfigurableResponse<T> lets a test pre seed a queue of responses the null should return for each operation, including error throwing: