public override DscResourceDto ToResourceDto() { return(new Dto.MergedPreferenceTests.MockDto { ResourceStepName = ResourceStepName, DependsOn = DependsOn.Select(x => x.ToResourceDto()).ToList(), Ensure = Ensure, ResourceName = ResourceName }); }
public override DscResourceDto ToResourceDto() { return(new ChocolateySourceDto { ChocoPackageSource = ChocoPackageSource, Ensure = Ensure, ResourceStepName = ResourceStepName, ResourceName = ResourceName, DependsOn = DependsOn?.Select(x => x.ToResourceDto()).ToList() }); }
public IEnumerator <object> GetEnumerator() { return(DependsOn.Select(d => d.Object).GetEnumerator()); }