createdMessage static method
Pure — so the exact wording is asserted without a Dio or a subprocess.
Implementation
static String createdMessage(
{required String id, required String ownerType}) {
final scope = ownerType == 'organization' ? 'organization app' : 'app';
return 'Created $scope: $id';
}