public override DscResourceDto ToResourceDto()
 {
     return(new Dto.MergedPreferenceTests.MockDto
     {
         ResourceStepName = ResourceStepName,
         DependsOn = DependsOn.Select(x => x.ToResourceDto()).ToList(),
         Ensure = Ensure,
         ResourceName = ResourceName
     });
 }
Пример #2
0
 public override DscResourceDto ToResourceDto()
 {
     return(new ChocolateySourceDto
     {
         ChocoPackageSource = ChocoPackageSource,
         Ensure = Ensure,
         ResourceStepName = ResourceStepName,
         ResourceName = ResourceName,
         DependsOn = DependsOn?.Select(x => x.ToResourceDto()).ToList()
     });
 }
Пример #3
0
 public IEnumerator <object> GetEnumerator()
 {
     return(DependsOn.Select(d => d.Object).GetEnumerator());
 }