상속: ICreditBaseManager
예제 #1
0
        static void Main(string[] args)
        {
            ICreditManager ihtiyacCreditManager = new IhtiyacCreditManager();

            ICreditManager tasitCreditManager = new TasitCreditManager();

            ICreditManager konutCreditManager = new KonutCreditManager();

            IloggerService dataBaseLoggerService = new DataBaseLoggerService();
            IloggerService fileLoggerService     = new FileLoggerService();


            BasvuruManager basvuruManager = new BasvuruManager();

            basvuruManager.BasvuruYap(new EsnafKrediManager(), new List <IloggerService>()
            {
                dataBaseLoggerService, fileLoggerService
                , new SmsLoggerService()
            });


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

            //basvuruManager.KrediOnBilgilendirmesiYap(credits);
        }
예제 #2
0
파일: Program.cs 프로젝트: bicerf/KampIntro
        static void Main(string[] args)
        {
            ICreditManager ihtiyacCreditManager = new IhtiyacCreditManager(); //interfaceler implemente edildiiği sınıfların referans nolarını tutabilirler o yüzden ICreditManager yazsam da çalışır aynı şey

            TasitCreditManager tasitCreditManager = new TasitCreditManager(); //burada tasit yazdım anlasılsın diye ICredit de yazsam aynı şey olacak

            ICreditManager konutCreditManager = new KonutCreditManager();

            ICreditManager esnafCreditManager = new EsnafCreditManager();

            ILoggerService dataBaseLoggerService = new DataBaseLoggerService();
            ILoggerService fileLoggerService     = new FileLoggerService();
            ILoggerService smsLoggerService      = new SmsLoggerService();

            ApplyManager applyManager = new ApplyManager();

            applyManager.Apply(konutCreditManager, new DataBaseLoggerService(), new List <ILoggerService> {
                new DataBaseLoggerService(), new SmsLoggerService()
            });                                                                                                                                                   //buradaki logu ya da kredi türünü değiştirdiğim takdirde hangi seçeneği istiyorsam sağlarım.İster taşıt ister file logu ya da istediğim farklı kombinasyonlar
            applyManager.Apply(esnafCreditManager, new SmsLoggerService(), new List <ILoggerService> {
                new DataBaseLoggerService(), new FileLoggerService()
            });



            List <ICreditManager> credits = new List <ICreditManager>()
            {
                ihtiyacCreditManager, tasitCreditManager
            };                                                                                                    //Liste yolu ile hesaplama
            //applyManager.CreditOnBilgilendirmesiYap(credits);
        }
예제 #3
0
        static void Main(string[] args)
        {
            //IhtiyacCreditManager ihtiyacCreditManager = new IhtiyacCreditManager();
            ICreditManager ihtiyacCreditManager = new IhtiyacCreditManager();
            ICreditManager tasitCreditManager   = new TasitCreditManager();
            ICreditManager konutCreditManager   = new KonutCreditManager();

            ILoggerService dbLoggerService   = new DatabaseLoggerService();
            ILoggerService fileLoggerService = new FileLoggerService();

            BasvuruManager basvuruManager = new BasvuruManager();

            basvuruManager.BasvuruYap(konutCreditManager, new List <ILoggerService> {
                dbLoggerService, fileLoggerService
            });

            basvuruManager.BasvuruYap(konutCreditManager, new List <ILoggerService> {
                fileLoggerService
            });

            List <ICreditManager> credits = new List <ICreditManager>();

            credits.Add(ihtiyacCreditManager);
            credits.Add(tasitCreditManager);
            credits.Add(konutCreditManager);
            //basvuruManager.CreditInformation(credits);
        }
예제 #4
0
        static void Main(string[] args)
        {
            ICreditManager ihtiyacCreditManager = new IhtiyacCreditManager();
            ICreditManager tasitCreditManager   = new TasitCreditManager();
            ICreditManager konutCreditManager   = new KonutCreditManager();
            ICreditManager esnafCreditManager   = new EsnafCreditManager();

            ILoggerService databaseLoggerService = new DatabaseLoggerService();
            ILoggerService fileLoggerService     = new FileLoggerService();
            ILoggerService smsLoggerService      = new SmsLoggerService();

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

            BasvuruManager basvuruManager = new BasvuruManager();

            basvuruManager.BasvuruYap(esnafCreditManager, loggers);

            List <ICreditManager> credits = new List <ICreditManager>()
            {
                ihtiyacCreditManager, tasitCreditManager
            };
            //basvuruManager.CreditOnBilgilendirmeYap(credits);
        }
예제 #5
0
        static void Main(string[] args)
        {
            ICreditManager ihtiyacKrediManager = new İhtiyacCreditManager();
            ICreditManager tasitcreditManager  = new TasitCreditManager();
            ICreditManager konutCreditmanager  = new KonutCreditManager();

            BasvuruManager basvuruManager = new BasvuruManager();

            basvuruManager.BasvuruYap(ihtiyacKrediManager);
        }
예제 #6
0
        static void Main(string[] args)
        {
            ICreditManager ihtiyacCreditManager = new IhtiyacCreditManager();
            ICreditManager tasitCreditManager   = new TasitCreditManager();
            ICreditManager konutCreditManager   = new KonutCreditManager();

            ILoggerService fileLoggerService = new FileLoggerService();

            ApplyManager applyManager = new ApplyManager();

            applyManager.Applying(ihtiyacCreditManager, new DatabaseLoggerService());

            List <ICreditManager> credits = new List <ICreditManager>()
            {
                konutCreditManager, tasitCreditManager
            };
            //applyManager.CreditPreInfo(credits);
        }
예제 #7
0
        static void Main(string[] args)
        {   //***********//
            ICreditService ihtiyacCreditManager = new IhtiyacCreditManager();
            ICreditService tasitCreditManager   = new TasitCreditManager();
            ICreditService konutCreditManager   = new KonutCreditManager();

            ApplicationManager applicationManager = new ApplicationManager();

            applicationManager.GetApplication(new EsnafCreditManager(), new List <ILoggerService> {
                new DatabaseLoggerService(), new SmsLogger()
            });                                                                                                                                    //*****new

            List <ICreditService> credits = new List <ICreditService>()
            {
                konutCreditManager, tasitCreditManager, ihtiyacCreditManager
            };

            applicationManager.GetCreditInformation(credits);
        }
예제 #8
0
        static void Main(string[] args)
        {
            ICreditManager ihtiyacCreditManager = new IhtiyacCreditManager();
            ICreditManager tasitCreditManager   = new TasitCreditManager();
            ICreditManager konutCreditManager   = new KonutCreditManager();


            ILoggerService databaseLoggerService = new DatabaseLoggerService();
            ILoggerService fileLoggerService     = new FileLoggerService();

            AppManager appManager = new AppManager();

            appManager.Apply(ihtiyacCreditManager, databaseLoggerService); //new DatabaseLoggerService());

            List <ICreditManager> credits = new List <ICreditManager>()
            {
                ihtiyacCreditManager,
                konutCreditManager
            };
            //appManager.PreCreditInform(credits);
        }
예제 #9
0
        static void Main(string[] args)
        {
            ICreditBaseManager ihtiyacCreditManager = new İhtiyacCreditManager();
            ICreditBaseManager tasitCreditManager   = new TasitCreditManager();
            ICreditBaseManager konutCreditManager   = new KonutCreditManager();

            ILoggerService databaseLoggerService = new DatabaseLoggerService();
            ILoggerService fileLoggerService     = new FileLoggerService();

            ApplicationManager applicationManager = new ApplicationManager();

            applicationManager.MakeAnApp(ihtiyacCreditManager, new List <ILoggerService> {
                new DatabaseLoggerService(), new FileLoggerService()
            });
            Console.WriteLine("//");

            List <ICreditBaseManager> credits = new List <ICreditBaseManager>()
            {
                ihtiyacCreditManager, tasitCreditManager
            };

            applicationManager.GivePreInfo(credits);
        }
예제 #10
0
        static void Main(string[] args)
        {
            ICreditManager ihtiyacCreditManager = new IhtiyacCreditManager();


            ICreditManager tasitCreditManager = new TasitCreditManager();


            ICreditManager konutCreditManager = new KonutCreditManager();

            ILoggerService databaseLoggerService = new DatabaseLoggerService();
            ILoggerService fileLoggerService     = new FileLoggerService();

            BasvuruManager basvuruManager = new BasvuruManager();

            basvuruManager.BasvuruYap(konutCreditManager, databaseLoggerService);


            List <ICreditManager> credits = new List <ICreditManager>()
            {
                ihtiyacCreditManager
            };
            //basvuruManager.KrediOnBilgilendirmesiYap(credits);
        }