/// <summary> /// Validate the integrity of this entity. /// </summary> public override void Validate(IEntity validationRoot, ValidationResults results) { base.Validate(validationRoot, results); commandStationRefs.Validate(validationRoot, results); locRefs.Validate(validationRoot, results); moduleRefs.Validate(validationRoot, results); moduleConnections.Validate(validationRoot, results); locGroups.Validate(validationRoot, results); // Check for duplicate addresses var addressEntities = this.GetAddressEntities().ToList(); addressEntities.WarnForDuplicateAddresses(results); }
/// <summary> /// Validate the integrity of this entity. /// </summary> public override void Validate(IEntity validationRoot, ValidationResults results) { base.Validate(validationRoot, results); locs.Validate(validationRoot, results); }