Exemple #1
0
    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));
        }
    }