Example #1
0
 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)
             ))
         );
 }
Example #2
0
 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();
 }