class OAuthProxy(BaseFacade): def __init__(self): self._repository = OAuthRepository() def get(self, user_id): entity = self._repository.get(user_id) if entity is None: return None return obj_map(entity, OAuthApplicationViewModel)
def __init__(self): self._repository = OAuthRepository()