Uberto Barbini
05/06/2020, 7:41 PMs4nchez
05/06/2020, 8:09 PMHttpHandlers
one for each dependency). That way you can simply inject the correct server instead of using a real client.
The second trick is to use a SystemUnderTest
abstraction that knows about each service and can wire things together accordingly and provide the right implementationServiceRegistry
which can serve a similar purpose to SystemUnderTest
and can be used to provide the correct clients at service startup. eg serviceRegistry.clientFor(ServiceA)
where ServiceA
implements a Service
interface that can provide the correct configuration depending on the context (in-memory
, vs local integration
vs real
)dave
05/06/2020, 8:16 PMUberto Barbini
05/06/2020, 9:37 PMdave
05/07/2020, 7:05 AMUberto Barbini
05/07/2020, 11:32 AMnatpryce
05/07/2020, 12:43 PMdave
05/08/2020, 8:06 AMUberto Barbini
05/08/2020, 9:08 AMdave
05/08/2020, 9:26 AMUberto Barbini
05/08/2020, 10:22 AMdave
05/08/2020, 10:23 AMUberto Barbini
05/09/2020, 9:12 AMdave
05/09/2020, 9:15 AMUberto Barbini
05/09/2020, 9:16 AMdave
05/09/2020, 9:16 AMUberto Barbini
05/09/2020, 9:17 AMdave
05/09/2020, 9:17 AM.install(Proxy.ID) { discovery -> Proxy(discovery.lookup(App.ID)) }
vs
.install(Proxy.ID) { discovery -> Proxy(discovery) }
Uberto Barbini
05/09/2020, 10:07 AM