Пример #1
0
        static void Main(string[] args)
        {
            CustomerBase mng = new CustomerManagerProxy();

            Console.WriteLine(mng.Calculate());
            Console.WriteLine(mng.Calculate());

            Console.Read();
        }
Пример #2
0
        static void Main(string[] args)
        {
            ICustomerService service   = new CustomerManagerProxy();
            List <Customer>  customers = service.GetAll();

            foreach (var customer in customers)
            {
                Console.WriteLine($"{customer.Name} - {customer.Surname} - {customer.Address} - {customer.Email}");
            }

            Console.ReadLine();
        }