BudgetAnalyser.Engine.Widgets.SurprisePaymentWidget.AbnormalNumberOfPayments C# (CSharp) Метод

AbnormalNumberOfPayments() приватный Метод

private AbnormalNumberOfPayments ( int paymentsInMonthCount ) : bool
paymentsInMonthCount int
Результат bool
        private bool AbnormalNumberOfPayments(int paymentsInMonthCount)
        {
            switch (Frequency)
            {
                case WeeklyOrFortnightly.Weekly:
                    return paymentsInMonthCount > WeeklyPaymentsInOneNormalMonth;
                case WeeklyOrFortnightly.Fortnightly:
                    return paymentsInMonthCount > FortnightlyPaymentsInOneNormalMonth;
                default:
                    throw new NotSupportedException("Unexpected frequency enumeration value found: " + Frequency);
            }
        }