Exemple #1
0
        //interfacelerde o implemente edilen sınıfın referansını tutabiliyor
        static void Main(string[] args)
        {
            ICreditManager ihtiyacCreditManager = new IhtiyacCreditManager();
            //ihtiyacCreditManager.Calc();

            ICreditManager vehicleCreditManager = new VehicleCreditManager();
            //vehicleCreditManager.Calc();

            ICreditManager konutCreditManager = new KonutCreditManager();
            //konutCreditManager.Calc();

            ILoggerServices dataBaseLoggerServices = new DatabaseLoggerServices();
            ILoggerServices fileLoggerServices     = new FileLoggerServices();

            List <ILoggerServices> loggers = new List <ILoggerServices> {
                new SmsLoggerServices(), new DatabaseLoggerServices()
            };

            BasvuruManager basvuru = new BasvuruManager();

            basvuru.BasvuruYap(new EsnafCreditManager(), loggers);  //new DataBaseLoggerservices şeklinde de kullanılabilir

            List <ICreditManager> credits = new List <ICreditManager>()
            {
                ihtiyacCreditManager, konutCreditManager, vehicleCreditManager
            };

            //basvuru.CreditFirstInfo(credits);

            Console.ReadLine();
        }
Exemple #2
0
        static void Main(string[] args)
        {
            IKrediManager ihtiyacKrediManager = new IhtiyacKrediManager();
            IKrediManager tasıtKrediManager   = new TasitKrediManager();
            IKrediManager konutKrediManager   = new KonutKrediManager();

            ILoggerService databaseLoggerService = new DatabaseLoggerServices();
            ILoggerService fileLoggerService     = new FileLoggerServices();

            List <ILoggerService> loggers = new List <ILoggerService> {
                new SmsLoggerService(), new FileLoggerServices()
            };


            BasvuruManager basvuruManager = new BasvuruManager();

            basvuruManager.BasvuruYap(new EsnafKredisiManager(), loggers);


            List <IKrediManager> krediler = new List <IKrediManager>()
            {
                ihtiyacKrediManager, tasıtKrediManager
            };

            //basvuruManager.KrediOnBilgilendirmesiYap(krediler);
        }
Exemple #3
0
        static void Main(string[] args)
        {
            //bunlar ekrandaki a.ılır kutular
            IKrediManager ihtiyacKrediManager = new IhtiyacKrediManager();
            IKrediManager tasitKrediManager   = new TasitKrediManager();
            IKrediManager konutKrediManager   = new KonutKrediManager();

            ILoggerService databaseLoggerService = new DatabaseLoggerServices();
            ILoggerService fileLoggerService     = new FileLoggerServices();
            BasvuruManager basvuruManager        = new BasvuruManager();

            basvuruManager.BasvuruYap(tasitKrediManager, databaseLoggerService);

            List <IKrediManager> krediler = new List <IKrediManager>()
            {
                ihtiyacKrediManager, tasitKrediManager
            };
            //  basvuruManager.KrediOnBilgilendirmesiYap(krediler);
        }
Exemple #4
0
        static void Main(string[] args)
        {
            IhtiyacKrediManager ıhtiyacKrediManager = new IhtiyacKrediManager();

            TasıtKrediManager tasıtKrediManager = new TasıtKrediManager();

            KonutKrediManager konutKrediManager = new KonutKrediManager();

            ILoggerService databaseLoggerServices = new DataBaseLoggerServices();
            ILoggerService fileLoggerServices     = new FileLoggerServices();

            BasvuruManager basvuruManager = new BasvuruManager();

            basvuruManager.BasvuruYap(new EsnafKrediManager(), new DataBaseLoggerServices());


            List <IKrediManager> krediler = new List <IKrediManager>()
            {
            };

            //basvuruManager.KrediOnBilgilendirmeYap(krediler);
        }
Exemple #5
0
        static void Main(string[] args)
        {
            ICreditManager personalFinanceCreditManager = new PersonalFinanceCreditManager();
            //personalFinanceCreditManager.Calculate();

            ICreditManager transportCreditManager = new TransportCreditManager();
            //transportCreditManager.Calculate();

            ICreditManager mortgageCreditManager = new MortgageCreditManager();
            //mortgageCreditManager.Calculate();

            ILoggerServices databaseLoggerServices = new DatabaseLoggerServices();
            ILoggerServices fileLoggerServices     = new FileLoggerServices();

            AplicationManager aplicationManager = new AplicationManager();

            aplicationManager.DoAplication(new ArtisanCreditManager(), new SmsLoggerServices());

            List <ICreditManager> credits = new List <ICreditManager>()
            {
                personalFinanceCreditManager, transportCreditManager
            };
            //aplicationManager.MakeCreditPreliminaryInformation(credits);
        }