Beispiel #1
0
        public void OnInternCreation(Intern intern)
        {
            var a = intern;
            var b = new HollidayPrivilege(a);

            b.AddPrivilege();
            _displayInfoAction.DisplayInfo(intern);
            //intern.DisplayAll();
        }
Beispiel #2
0
        public void OnContractorCreation(Contractor contractor)
        {
            var         a = contractor;
            IPrivileges b = new HollidayPrivilege(a);

            b.AddPrivilege();
            IPrivileges d = new SalaryBonusPrivilege(a);

            d.AddPrivilege();
            _displayInfoAction.DisplayInfo(contractor);
            //contractor.DisplayAll();
        }
        public void OnEmployeeCreation(Employee employee)
        {
            var         a = employee;
            IPrivileges b = new HollidayPrivilege(a);

            b.AddPrivilege();
            b = new LunchTichetsPrivilege(a);
            b.AddPrivilege();
            b = new SalaryBonusPrivilege(a);
            b.AddPrivilege();
            _displayInfoAction.DisplayInfo(employee);
            //employee.DisplayAll();
        }
Beispiel #4
0
        //public Person CreatePerson(string fname, string lname, string bdate)
        //{
        //    var person = new Person(fname, lname, bdate);
        //    OnInternCreation(person);
        //    return person;
        //}

        //public Person CreatePersonWSkills(string fName, string lName, string bdate, Dictionary<string, int> skillsDictionary, Address address, Company company)
        //{
        //    var person = new Person(fName, lName, bdate, skillsDictionary,  address, company);
        //    OnInternCreation(person);
        //    return person;
        //}

        public void OnInternCreation(Person person)
        {
            _displayInfoAction.DisplayInfo(person);
            //intern.DisplayAll();
        }