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 implementations4nchez
05/06/2020, 8:13 PMServiceRegistry 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 PMUberto Barbini
05/06/2020, 9:44 PMdave
05/07/2020, 7:05 AMdave
05/07/2020, 7:10 AMdave
05/07/2020, 7:11 AMdave
05/07/2020, 7:16 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 AMdave
05/08/2020, 8:28 PMdave
05/08/2020, 8:41 PMdave
05/08/2020, 8:43 PMUberto Barbini
05/09/2020, 9:12 AMUberto Barbini
05/09/2020, 9:14 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 AMdave
05/09/2020, 9:19 AMdave
05/09/2020, 9:21 AM.install(Proxy.ID) { discovery -> Proxy(discovery.lookup(App.ID)) }
vs
.install(Proxy.ID) { discovery -> Proxy(discovery) }dave
05/09/2020, 9:21 AMdave
05/09/2020, 9:21 AMUberto Barbini
05/09/2020, 10:07 AMUberto Barbini
05/09/2020, 10:08 AM