public void Validate() { if (AppName._IsEmpty()) { throw new ArgumentNullException(nameof(AppName)); } if (this.DefaultCommitId._IsFilled() && this.DefaultCommitId._GetHexBytes().Length != 20) { throw new ArgumentException(nameof(DefaultCommitId)); } }