예제 #1
0
        public static string GetDisplayTextFrequencyPostfix(WageType type, WageUnit unit, WageDetails wageDetails)
        {
            string postfix = unit.GetWagePostfix();

            string displayAmount = GetDisplayText(type, unit, wageDetails);

            if (string.IsNullOrWhiteSpace(displayAmount))
            {
                return(postfix);
            }

            return($"{displayAmount} {postfix}");
        }
예제 #2
0
        public static string GetDisplayAmountWithFrequencyPostfix(WageType type, decimal?amount, decimal?amountLowerBound, decimal?amountUpperBound, string text, WageUnit unit, decimal?hoursPerWeek, DateTime?possibleDateTime)
        {
            var postfix = unit.GetWagePostfix();

            var displayAmount = GetDisplayAmount(type, amount, amountLowerBound, amountUpperBound, text, hoursPerWeek, possibleDateTime);

            if (string.IsNullOrWhiteSpace(displayAmount))
            {
                return(postfix);
            }

            return($"{displayAmount} {postfix}");
        }