Пример #1
0
        public void Ctor_Default()
        {
            var x = new ReferenceDataSidList <XyzRd, string>();

            Assert.IsNotNull(x);
            Assert.AreEqual(0, x.Count);
        }
Пример #2
0
        /// <summary>
        /// Performs a clean-up of the <see cref="PersonArgs"/> resetting property values as appropriate to ensure a basic level of data consistency.
        /// </summary>
        public override void CleanUp()
        {
            base.CleanUp();
            this.FirstName = Cleaner.Clean(this.FirstName, StringTrim.End, StringTransform.EmptyToNull);
            this.LastName  = Cleaner.Clean(this.LastName, StringTrim.End, StringTransform.EmptyToNull);
            this.Genders   = Cleaner.Clean <ReferenceDataSidList <Gender, string> >(this.Genders);

            this.OnAfterCleanUp();
        }
Пример #3
0
        /// <summary>
        /// Performs a copy from another <see cref="PersonArgs"/> updating this instance.
        /// </summary>
        /// <param name="from">The <see cref="PersonArgs"/> to copy from.</param>
        public void CopyFrom(PersonArgs from)
        {
            CopyFrom((EntityBase)from);
            this.FirstName = from.FirstName;
            this.LastName  = from.LastName;
            this.Genders   = from.Genders;

            this.OnAfterCopyFrom(from);
        }