private IEnumerable <ChainParticipant> GetParticipants() { var participants = new List <ChainParticipant>(); var participant = new ChainParticipant(null, companies.First()); participants.Add(participant); foreach (var company in companies.Skip(1)) { participant = new ChainParticipant(participant, company); participants.Add(participant); } return(participants); }
public ChainParticipant(ChainParticipant previousParticipant, NPReportCompany company) { this.previousParticipant = previousParticipant; Company = company; }