We want to be able to access a client for the TfL API in multiple places with in the project. However we want to configure the client once and reuse it in multiple places. Additionally, we may need to switch out the client used in the future. So we should avoid hard code references to a client and consider instead providing an interface for this.
We want to be able to access a client for the TfL API in multiple places with in the project. However we want to configure the client once and reuse it in multiple places. Additionally, we may need to switch out the client used in the future. So we should avoid hard code references to a client and consider instead providing an interface for this.