Exemple #1
0
        protected override void ValidateRuleName(LeaseDTO lse)
        {
            if (lse?.Rent == null)
            {
                throw Null.Ref("Lease Rent Params");
            }

            if (lse.Rent.PenaltyRule != RuleName)
            {
                throw Bad.Key <LeaseDTO>(RuleName,
                                         lse.Rent.PenaltyRule,
                                         nameof(lse.Rent.PenaltyRule));
            }
        }