Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
 public ChainParticipant(ChainParticipant previousParticipant, ReportCompany company)
 {
     this.previousParticipant = previousParticipant;
     Company = company;
 }