public static PensionContribution Create(decimal pensionContribution) { if (pensionContribution < 0 || pensionContribution > 100) { throw new BadInputException($"'{pensionContribution}' Pension Contribution must be between 0% and 100%"); } return(new PensionContribution(Percent.Create(pensionContribution))); }
private void persent_Click(Object sender, EventArgs e) { Percent?.Invoke(this, EventArgs.Empty); equals.Focus(); }
private PensionContribution(Percent percent) { _percent = percent; }