public override Participant CreateFromMessage(ParticipantMessage message) { return(_ParticipantFactory.Create(message.BarbecueID, message.Name, message.ContributionAmount, message.IsPaid, message.IsWithDrink, message.Observation)); }
private static void TestOriginal() { ParticipantFactory fac = new ParticipantFactory(); List <Participant> all = new List <Participant>(); for (int i = 0; i < noOfParticipants; i++) { all.Add(fac.Create()); } for (int i = 0; i < noOfParticipants; i++) { all[i].Animate(); } }