Exemplo n.º 1
0
        private IBenefits Benefits()
        {
            var      cost      = new BenefitsCostController().Get();
            var      discounts = new BenefitsDiscountsController().Get();
            string   file      = AppDomain.CurrentDomain.BaseDirectory + "bin\\BusinessLogic.dll";
            Assembly assembly  = Assembly.LoadFrom(file);
            Type     type      = assembly.GetType("EmployeesApp.BusinessLogic.Benefits");

            return((IBenefits)Activator.CreateInstance(type, cost, discounts));
        }
Exemplo n.º 2
0
 private IBenefits Benefits()
 {
     var cost = new BenefitsCostController().Get();
     var discounts = new BenefitsDiscountsController().Get();
     string file = AppDomain.CurrentDomain.BaseDirectory + "bin\\BusinessLogic.dll";
     Assembly assembly = Assembly.LoadFrom(file);
     Type type = assembly.GetType("EmployeesApp.BusinessLogic.Benefits");
     return (IBenefits)Activator.CreateInstance(type, cost, discounts);
 }