static void Main(string[] args) { Gamer gamer1 = new Gamer(); gamer1.NationaltyNo = 12345678910; gamer1.FirstName = "Ramazan"; gamer1.LastName = "Gürsoy"; gamer1.DateOfBirth = "1990"; Game game1 = new Game(); game1.GameName = "GTAV"; game1.Gametype = "Action"; game1.GamePrice = 15; Campaign campaign1 = new Campaign(); campaign1.CampaignName = "Black Friday"; campaign1.CampaignPriceCut = 50; GamerManager gamerManager = new GamerManager(); gamerManager.Add(gamer1); gamerManager.Update(gamer1); gamerManager.Delete(gamer1); GameManager gameManager1 = new GameManager(); gameManager1.Add(game1); gameManager1.Update(game1); gameManager1.Delete(game1); CampaignManager campaignManager = new CampaignManager(); campaignManager.CampaignAdd(campaign1); campaignManager.CampaignUpdate(campaign1); campaignManager.CampaignDeleted(campaign1); SaleType saleType = new SaleType(); saleType.CasheSale(campaign1); ISale sale = new Sale(); sale.CreateSale(game1, campaign1, gamer1); }
static void Main(string[] args) { GamerManager gamerManager = new GamerManager(new UserValidationManager()); gamerManager.Add(new Gamer { Id = 1, FirsName = "Selim", LastName = "Taşkın", BirthYear = 1999, IdentityNumber = 12345678 }); //Veri Tabanı Bilgileri gamerManager.Add(new Gamer { Id = 1, FirsName = "Mehmet", LastName = "Çetin", BirthYear = 1999, IdentityNumber = 2536812345, }); Gamer gamer2 = new Gamer(); gamer2.Id = 2; gamer2.FirsName = "Melisa"; gamer2.LastName = "Güneş"; gamer2.BirthYear = 1998; gamer2.IdentityNumber = 2536812347; Game game1 = new Game(); game1.Id = 14; game1.GameName = "Strateji_012"; game1.Price = 24.90; Game game2 = new Game(); game2.Id = 25; game2.GameName = "Maceraya Başlangıç"; game2.Price = 34.90; GameManager gameManager = new GameManager(); gameManager.Add(game1); gameManager.Add(game2); Campaign campaign1 = new Campaign(); campaign1.Id = 3; campaign1.Name = "Yaz Kampanyası"; campaign1.Rate = 25; Campaign campaign2 = new Campaign(); campaign2.Id = 6; campaign2.Name = "Tatil İndirimleri"; campaign2.Rate = 50; CampaignManager campaign = new CampaignManager(); campaign.Add(campaign1); campaign.Add(campaign2); // Console.WriteLine("----------------------------------------------- "); OrderManager orderManager = new OrderManager(); orderManager.SalesGame(gamer2, game1, campaign1); }