public async Task <IEnumerable <DeployedEnvironment> > GetDeployments(
        [Service] IPublishingService service,
        [Parent] ApplicationPart applicationPart,
        CancellationToken cancellationToken)
    {
        IReadOnlyList <Environment> envs = await service
                                           .GetDeployedEnvironmentByPartIdAsync(applicationPart.Id, cancellationToken);

        return(envs.Select(x => new DeployedEnvironment(applicationPart.Id, x.Id)));
    }