public Carnet(CarnetNumber number, State state, Reason reason, Association association, DateTime? dateTime, User user, string archiveNumber) : base(number) { this.State = state; this.Reason = reason; this.Association = association; this.DateTime = dateTime; this.User = user; this.ArchiveNumber = archiveNumber; }
public Serie(CarnetNumber number, State state, SerieType type, Language language, Association association, DateTime? dateTime, User user, string comments, Usage usage, Surcharge surcharge, IEnumerable<Packet> packets) : base(number) { this.packets = new List<Packet>(Contract.Required(packets, "packets")); this.State = state; this.Type = type; this.Language = language; this.Association = association; this.Date = dateTime; this.User = user; this.Comments = comments; this.Usage = usage; this.Surcharge = surcharge; packets.Apply(packet => packet.Serie = this); }
public Packet(CarnetNumber number, State state, DateTime date, Association association, DeliveryMode deliveryMode, Invoice invoice, DeliveryNote deliveryNote, User user, string comments, string reference, PacketType type, Clause31Insurer c31Insurer, IEnumerable<Carnet> carnets) : base(number) { Carnets = new List<Carnet>(Contract.Required(carnets, "carnets")); this.State = state; this.Date = date; this.Association = association; this.DeliveryMode = deliveryMode; this.Invoice = invoice; this.User = user; this.Comments = comments; this.Reference = reference; this.Type = type; this.Clause31Insurer = c31Insurer; carnets.Apply(carnet => carnet.Packet = this); }