コード例 #1
0
        static void Main(string[] args)
        {
            //PersonelCredit personelCredit = new PersonelCredit();
            //personelCredit.Calculate();

            //TransportCredit transportCredit = new TransportCredit();
            //transportCredit.Calculate();

            //MortgageLoan mortgageLoan = new MortgageLoan();
            //mortgageLoan.Calculate();

            ICreditManager personelCredit = new PersonelCredit();

            ICreditManager transportCredit = new TransportCredit();

            ICreditManager mortgageLoan = new MortgageLoan();

            ILoggerService databaseLoggerSevice = new DatabaseLoggerService();
            ILoggerService fileLoggerServise    = new FileLoggerService();

            AplicationManager aplicationManager = new AplicationManager();

            aplicationManager.DoAplication(personelCredit, new List <ILoggerService> {
                new DatabaseLoggerService(), new FileLoggerService()
            });

            List <ICreditManager> credits = new List <ICreditManager>()
            {
                personelCredit, transportCredit, mortgageLoan
            };
            //  aplicationManager.CreditInfo(credits);
        }
コード例 #2
0
        //Interfaceses
        static void Main(string[] args)
        {
            //** ICreditManager dan referans alındı...//**//
            ICreditManager personalCreditManager  = new PersonalCreditManager();
            ICreditManager transportCreditManager = new TransportCreditManager();
            ICreditManager mortgageCreditManager  = new MortgageCreditManager();

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


            AplicationManager aplicationManager = new AplicationManager();

            aplicationManager.MakeAnApplication(mortgageCreditManager, new DatabaseLoggerService());

            List <ICreditManager> credits = new List <ICreditManager>()
            {
                personalCreditManager
            };
            //aplicationManager.CreditInfo(credits);



            //**1.Yöntem iptal**//
            // PersonalCreditManager personalCreditManager = new PersonalCreditManager();
            //** personalCreditManager.Calculate(); **Aşağıda Referans alındı bu satır aşağıdan silindi.

            // TransportCreditManager transportCreditManager = new TransportCreditManager();
            //**transportCreditManager.Calculate(); **Aşağıda Referans alındı bu satır aşağıdan silindi.

            // MortgageCreditManager mortgageCreditManager = new MortgageCreditManager();
            //** mortgageCreditManager.Calculate(); **Aşağıda Referans alındı bu satır aşağıdan silindi.
        }
コード例 #3
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);
        }