public ReleasePlan(ReleaseTemplateResource releaseTemplate, IPackageVersionResolver versionResolver) { steps.AddRange( releaseTemplate.Packages.Select(p => new ReleasePlanItem( p.StepName, p.NuGetPackageId, p.NuGetFeedId, p.IsResolvable, versionResolver.ResolveVersion(p.StepName) ?? versionResolver.ResolveVersion(p.NuGetPackageId) )) ); }
public ReleasePlan(ProjectResource project, ChannelResource channel, ReleaseTemplateResource releaseTemplate, IPackageVersionResolver versionResolver) { Project = project; Channel = channel; ReleaseTemplate = releaseTemplate; steps = releaseTemplate.Packages.Select( p => new ReleasePlanItem( p.StepName, p.PackageId, p.FeedId, p.IsResolvable, versionResolver.ResolveVersion(p.StepName) ?? versionResolver.ResolveVersion(p.PackageId))) .ToArray(); }