public override void Check() { if (String.IsNullOrEmpty(FromPublicId)) throw new ArgumentException("FromPublicId can't be null!"); if (String.IsNullOrEmpty(ToPublicId)) throw new ArgumentException("ToPublicId can't be null!"); }