Exemplo n.º 1
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();
 }
Exemplo n.º 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();
        }
Exemplo n.º 3
0
 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();
 }
Exemplo n.º 4
0
        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();
        }