public ExpandedRecipe Expand(Recipe recipe) { var expandedRecipe = new ExpandedRecipe { Type = recipe.Type, Package = recipe.Package, Publish = recipe.Publish, BasePath = recipe.BasePath, Deployments = recipe.Deployments.Select(_ => _deploymentManager.GetById(_)).ToArray(), NotificationChannels = recipe.NotificationChannels.Select(_ => _notificationChannelManager.GetById(_)).ToArray() }; return(expandedRecipe); }