Пример #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));
        }
Пример #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);
 }