示例#1
0
        // Http istekleri-> HttpGet(mevcut datayı getirir) , HttpPost(data oluşturmak için kullanılır), HttpPut(data güncellemek için kullanılır), HttpDelete(data silmek için kullanılır)
        // Restfull web api nedir ?
        static void Main(string[] args)
        {
            ICreditManager creditManager1 = new CreditType1Manager();
            ICreditManager creditManager2 = new CreditType2Manager();
            ICreditManager creditManager3 = new CreditType3Manager();

            ApplicationManager applicationManager = new ApplicationManager();

            applicationManager.MakeApplication(creditManager3, new FileLoggerService());
            Console.WriteLine();


            List <ICreditManager> creditList = new List <ICreditManager>()
            {
                creditManager1, creditManager3
            };

            applicationManager.PreliminaryInformation(creditList);

            //foreach (var item in creditList)
            //{
            //    item.Calculate();
            //    item.Information();
            //    Console.WriteLine();
            //}
        }
示例#2
0
        static void Main(string[] args)
        {
            ICreditManager creditManager1 = new CreditType1Manager();
            ICreditManager creditManager2 = new CreditType2Manager();

            ILoggerService loggerService1 = new FileLoggerService();
            ILoggerService loggerService2 = new SmsLoggerService();

            ApplicationManager applicationManager = new ApplicationManager();

            applicationManager.MakeApplication(creditManager1, loggerService2);

            List <ICreditManager> creditManagers = new List <ICreditManager> {
                creditManager1, creditManager2
            };

            applicationManager.PreliminaryInformation(creditManagers);
        }