Пример #1
0
        static void Main(string[] args)
        {
            Customer customer1 = new Customer();

            customer1.id            = 1;
            customer1.FirstName     = "Yusuf";
            customer1.LastName      = "KOÇAK";
            customer1.BirthYear     = 1997;
            customer1.NationalityId = 11111111111;

            CustomerManager customermanager = new CustomerManager(new MernisServiceAdapter());

            customermanager.Add(customer1);

            Console.WriteLine();

            CampaignGame campaignGame1 = new CampaignGame()
            {
                Id = 1, CampaignName = "Büyük Şubat İndirimi",
                CampaignDetails  = "%50 ye varan indirimler,seni bekler ;)",
                CampaignGameName = "GTA 5", CampaignGamePrice = 30
            };

            CampaignManager campaignManager = new CampaignManager();

            campaignManager.Add(campaignGame1);

            Console.WriteLine();


            OrderManager order1 = new OrderManager();

            order1.OrderCustomer(customer1, campaignGame1);

            Console.ReadLine();
        }
Пример #2
0
 public void Update(CampaignGame campaign)
 {
     Console.WriteLine("Updated Campaign Completed.");
 }
Пример #3
0
 public void OrderCustomer(User user, CampaignGame campaignGame)
 {
     Console.WriteLine(user.FirstName + "İsimli Müşteri"
                       + campaignGame.CampaignName + "Kampanyasından Faydalanarak"
                       + campaignGame.CampaignGameName + "Ürünü Satın Almıştır.");
 }
Пример #4
0
 public void Add(CampaignGame campaign)
 {
     Console.WriteLine("Add Campaign Completed.");
 }
Пример #5
0
 public void OrderCustomer(Customer customer, CampaignGame campaignGame)
 {
     Console.WriteLine(customer.FirstName + " isimli müşteri "
                       + campaignGame.CampaignName + " kampanyasından faydalanarak "
                       + campaignGame.CampaignGameName + " ürününü aldı.");
 }
 public void Update(CampaignGame campaign)
 {
     Console.WriteLine("Kampanya güncelleme işlemi tamamlandı");
 }
 public void Delete(CampaignGame campaign)
 {
     Console.WriteLine("Kampanya silme işlemi tamamlandı");
 }
 public void Add(CampaignGame campaign)
 {
     Console.WriteLine("Kampanya Ekleme işlemi tamamlandı");
 }