Exemplo n.º 1
0
        static void Main(string[] args)
        {
            // classlar ve interfaceler kendilerini implemente
            // eden classların referanslarını tutabilir
            ICreditManager consumerCreditManager = new ConsumerCreditManager();
            ICreditManager vehicleCreditManager  = new VehicleCreditManager();
            ICreditManager homeCreditManager     = new HomeCreditManager();

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

            ApplicantManager applicantManager = new ApplicantManager();

            applicantManager.Apply(homeCreditManager, databaseLoggerService);


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

            credits.Add(consumerCreditManager);
            credits.Add(vehicleCreditManager);

            applicantManager.CreditPreview(credits);


            Console.Read();
        }
Exemplo n.º 2
0
        static void Main(string[] args)
        {
            PersonalFinanceCredit personalFinanceCredit = new PersonalFinanceCredit();
            CarCreditManager      carCreditManager      = new CarCreditManager();
            MortgageManager       mortgageManager       = new MortgageManager();

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

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


            ApplicantManager applicantManager = new ApplicantManager();

            applicantManager.BasvuruYap(new ArtisanCredit(), loggers);


            List <ICreditManager> creditList = new List <ICreditManager>()
            {
                personalFinanceCredit, carCreditManager
            };

            //applicantManager.KrediOnbilgilendirmesiYap(creditList);
        }
Exemplo n.º 3
0
        static void Main(string[] args)
        {
            PersonelCreditManager  personelCreditManager  = new PersonelCreditManager();
            TransportCreditManager transportCreditManager = new TransportCreditManager();
            HouseCreditManager     houseCreditManager     = new HouseCreditManager();

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

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

            ApplicantManager applicantManager = new ApplicantManager();

            applicantManager.MakeApplication(houseCreditManager, loggers);


            List <ICreditManager> credits = new List <ICreditManager>()
            {
                personelCreditManager, transportCreditManager, houseCreditManager
            };
            //applicantManager.CreditInformation(credits);
        }