I've also moved some of the event validation (missing writekey, dataset or API host) out of Event#send and into TransmissionClient#add so as not to require a fake writekey for the fake client. We've been talking about toning down some of those validations anyway, but that's out of scope for this PR.
This adds support for stubbing out the
TransmissionClient
and capturing events for later inspection, allowing testing of instrumented code. tl;dr:I've also moved some of the event validation (missing writekey, dataset or API host) out of
Event#send
and intoTransmissionClient#add
so as not to require a fake writekey for the fake client. We've been talking about toning down some of those validations anyway, but that's out of scope for this PR.