コード例 #1
0
        public Address(int id, ExternalAgent agent, AddressVO addressDetails)
            : this()
        {
            if (agent == null)
            {
                throw new ArgumentNullException("External agent is required.");
            }

            Id             = id;
            Agent          = agent;
            AddressDetails = addressDetails;
        }
コード例 #2
0
        public ContactPerson(int id, ExternalAgent agent, PersonName name, PhoneNumber telephone, string notes)
            : this()
        {
            if (agent == null)
            {
                throw new ArgumentNullException("External agent is required.");
            }

            Id          = id;
            Agent       = agent;
            ContactName = name;
            Telephone   = telephone;
            Notes       = notes;

            CheckValidity();
        }