Exemple #1
0
        static void Main(string[] args)
        {
            IEmployeeAdapter employeeAdapter = new EmployeeAdapter();
            var jsonResult = employeeAdapter.GetEmployeeList();

            Console.Write(jsonResult);
        }
        static void Main(string[] args)
        {
            HRSystem hrSystem = new HRSystem();
            ITarget  target   = new EmployeeAdapter(hrSystem);

            foreach (var employee in target.GetEmployeeList())
            {
                Console.Write(employee);
            }

            Console.ReadKey();
        }