Ejemplo n.º 1
0
        public Holder ByCode(string code)
        {
            Holder result = holders.Value.FirstOrDefault(holder => holder.Code == code);

            if (result == null)
            {
                result = new Holder(0, code, String.Empty);
                holders.Value.Add(result);
            }

            return result;
        }
Ejemplo n.º 2
0
        public IssueDetails(Carnet carnet, DateTime processingDate, DateTime issuedOn, DateTime expiryDate, Holder issuedTo, bool? isHighValue, Association issuedBy)
        {
            this.Carnet = Contract.Required(carnet, "carnet");
            this.ProcessingDate = processingDate;
            this.IssuedOn = issuedOn;
            this.ExpiryDate = expiryDate;
            this.IssuedTo = issuedTo;
            this.IsHighValue = isHighValue;
            this.IssuedBy = issuedBy;

            this.Carnet.IssueDetails = this;
        }