Ejemplo n.º 1
0
 public void Inicializar()
 {
     masGlobalEmployeeTestRepository = Substitute.For <IMasGlobalEmployeeTestRepository>();
     employeeFactory  = Substitute.For <IEmployeeFactory>();
     employeeBusiness = new EmployeeBusiness(masGlobalEmployeeTestRepository, employeeFactory);
     employeeList     = new List <Employee> {
         new Employee {
             Id               = 1,
             Name             = "Arthur",
             ContractTypeName = "HourlySalaryEmployee",
             RoleId           = 1,
             RoleName         = "Developer",
             RoleDescription  = null,
             HourlySalary     = 50000,
             MonthlySalary    = 6000000
         },
         new Employee {
             Id               = 2,
             Name             = "Fancisco",
             ContractTypeName = "MonthlySalaryEmployee",
             RoleId           = 1,
             RoleName         = "Arquitect",
             RoleDescription  = null,
             HourlySalary     = 50000,
             MonthlySalary    = 9000000
         },
         new Employee {
             Id               = 2,
             Name             = "Juan",
             ContractTypeName = "HourlySalaryEmployee",
             RoleId           = 1,
             RoleName         = "Designer",
             RoleDescription  = null,
             HourlySalary     = 25000,
             MonthlySalary    = 3000000
         }
     };
 }
 public EmployeeBusiness(IMasGlobalEmployeeTestRepository masGlobalEmployeeTestRepository,
                         IEmployeeFactory employeeFactory)
 {
     _MasGlobalEmployeeTestRepository = masGlobalEmployeeTestRepository;
     _EmployeeFactory = employeeFactory;
 }