Ejemplo n.º 1
0
 public static Kickstart.Build.Services.Model.ReleaseDefinition ToModel(this ProtoAlias.ReleaseDefinition source)
 {
     return(new Kickstart.Build.Services.Model.ReleaseDefinition
     {
         //ReleaseDefinitionId = source.<unfound proto file>,
         ReleaseDefinitionName = source.ReleaseDefinitionName,
         ProjectId = ProjectId,
         //ReleaseDefinitionIdentifier = source.<unfound proto file>,
         BuildDefinitions = source.BuildDefinitions.ToModel(),
         Environments = source.Environments.ToModel()
     });
 }
Ejemplo n.º 2
0
        public static ProtoAlias.ReleaseDefinition ToProto(this Kickstart.Build.Services.Model.ReleaseDefinition source)
        {
            var rd = new ProtoAlias.ReleaseDefinition
            {
                ReleaseDefinitionIdentifier = source.ReleaseDefinitionIdentifier,
                ReleaseDefinitionName       = source.ReleaseDefinitionName,
            };

            if (source.BuildDefinitions != null)
            {
                rd.BuildDefinitions.AddRange(source.BuildDefinitions.ToProto());
            }
            return(rd);
        }