public void Update(Campaign campaign) { Console.WriteLine("\nUpdated Campaign: " + campaign.CampaignName); }
public void Add(Campaign campaign) { Console.WriteLine("\nAdded Campaign: " + campaign.CampaignName); }
public void Sales(Games games, Gamer gamer, Campaign campaign) { int indirimliFiyat = games.GamePrice - campaign.CampaignAmount; Console.WriteLine(gamer.FirstName + " " + "oyuncu" + " " + games.GameName + " " + "oyununu" + " " + campaign.CampaignName + " " + "kampanyası ile " + indirimliFiyat + " " + "TL'den aldı."); }
public void Delete(Campaign campaign) { Console.WriteLine("\nDeleted Campaign: " + campaign.CampaignName); }
public void Cadd(Campaign campaign) { Console.WriteLine(campaign.CampaingName + " kampanyası eklendi"); }
static void Main(string[] args) { PlayerManager playerManager = new PlayerManager(new UserCheckManager()); CampaignManager campaignManager = new CampaignManager(); SalesManager salesManager = new SalesManager(); Game game1 = new Game { Id = 1, Name = "PlayerUnknown's Battlegrounds", Price = 87 }; Game game2 = new Game { Id = 2, Name = "Counter-Strike: Global Offensive", Price = 127 }; Game game3 = new Game { Id = 3, Name = "Valorant", Price = 50 }; Console.WriteLine("\n------ Kullanıcı Ekle Sil Güncelle Yönetimi-------\n"); Players player1 = new Players() { Id = 1, FirstName = "Ahmet", LastName = "Yılmaz", BirtDateYear = "1986", NationalId = 123456789 }; playerManager.Add(player1); playerManager.Update(player1); playerManager.Delete(player1); Console.WriteLine("\n------ Kampanya Ekle Sil Güncelle Yönetimi -------\n"); Campaign campaign1 = new Campaign { CampignName = "Yeni Oyuncu İndirimi", DiscountRate = 0.1 }; Campaign campaign2 = new Campaign { CampignName = "Kış İndirimi", DiscountRate = 0.2 }; Campaign campaign3 = new Campaign { CampignName = "Yeni Sezon İndirimi", DiscountRate = 0.3 }; campaignManager.Add(campaign1); campaignManager.Update(campaign2); campaignManager.Delete(campaign1); Console.WriteLine("\n------ Normal Satış -------\n"); salesManager.SellGame(player1, game3); Console.WriteLine("\n------ Kampanyalı Satış -------\n"); salesManager.CampaignGame(player1, game2, campaign2); Console.WriteLine(); salesManager.CampaignGame(player1, game1, campaign3); }
public void Cdelete(Campaign campaign) { Console.WriteLine(campaign.CampaingName + " kampanyası silindi"); }
public void Cupdate(Campaign campaign) { Console.WriteLine(campaign.CampaingName + " kampanyasının bilgileri güncellendi"); }
public void Update(Campaign campaign) { Console.WriteLine(campaign.CampaignName + " Kampanyası Güncellendi"); }
public void Add(Campaign campaign) { Console.WriteLine(campaign.CampaignName + " Kampanyası Eklendi"); }
public void Delete(Campaign campaign) { Console.WriteLine(campaign.CampaignName + " Kampanyası Silindi"); }
public void Add(Game game, Campaign campaign, Gamer gamer) { Console.WriteLine(game.GameName + " adlı oyunda " + game.UnitPrice + " TL İndirim var"); }
public void Update(Game game, Campaign campaign, Gamer gamer) { Console.WriteLine("İndirim güncellendi"); }
public void Delete(Game game, Campaign campaign, Gamer gamer) { Console.WriteLine(game.GameName + " adlı oyundan İndirim silindi"); }
public void CampaignSale(Gamer gamer, Game game, Campaign campaign) { var newPrice = game.Price - campaign.CampaignPrice; Console.WriteLine("Kampanyalı fiyat " + newPrice + " 'dır "); }