Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            ICreditManager personelCreditManager = new PersonelCreditManager();
            ICreditManager vehicleCreditManager  = new VehicleCreditManager();
            ICreditManager homeCreditManager     = new HomeCreditManager();

            RecourseManager recourseManager = new RecourseManager();

            recourseManager.DoRecourse(personelCreditManager, new DatabaseLoggerService());

            List <ICreditManager> credits = new List <ICreditManager>()
            {
                personelCreditManager, vehicleCreditManager, homeCreditManager
            };

            //recourseManager.CreditInformation(credits);
        }
Ejemplo n.º 2
0
        static void Main(string[] args)
        {
            ICreditManager homeCredit = new HomeCreditManager();
            ICreditManager carCredit  = new CarCreditManager();

            ILoggerService databaseLogger    = new DatabaseLoggerServices();
            ILoggerService fileloggerService = new FileLoggerServices();

            KrediBasvuruManager krediBasvuru = new KrediBasvuruManager();

            krediBasvuru.basvuru(homeCredit, databaseLogger);
            krediBasvuru.basvuru(carCredit, fileloggerService);

            Console.WriteLine("/////////////////////////////");

            List <ICreditManager> krediler = new List <ICreditManager> {
                homeCredit, carCredit
            };

            krediBasvuru.krediBilgilendirme(krediler);
        }