Example #1
0
        static void Main(string[] args)
        {
            Console.WriteLine(Constants.WelcomeMessage);

            Person employee = new Person();

            employee.GetPersonNameSurname();

            var calculations = new Calculations();
            var payslipIO    = new PayslipIO();
            var payslipInput = new PayslipInput(payslipIO);

            Payslip newUser = new Payslip(calculations, payslipInput);

            newUser.GetUserData();

            Console.WriteLine(Environment.NewLine + Constants.PayslipGeneratedMessage + Environment.NewLine);

            employee.PrintPerson();
            newUser.PrintDetails();

            Console.WriteLine(Environment.NewLine + Constants.EndMessage);
        }
Example #2
0
 public Payslip(Calculations calculations, PayslipInput payslipInput)
 {
     _calculations = calculations;
     _payslipInput = payslipInput;
 }