def setUp(self): # Create mock client self._fake_client = FakeDaprActorClient self._fake_factory = FakeActoryProxyFactory(self._fake_client) self._proxy = ActorProxy.create(FakeMultiInterfacesActor.__name__, ActorId('fake-id'), FakeActorCls2Interface, self._fake_factory)
def create(self, actor_interface, actor_type, actor_id) -> ActorProxy: return ActorProxy(self._dapr_client, actor_interface, actor_type, actor_id, DefaultJSONSerializer())