static void Main(string[] args) { GamerManager gamerManager = new GamerManager(new NewEStateUserValidationManager()); gamerManager.Add(new Gamer { Id = 1, BirthYear = 2001, FirstName = "ENES", LastName = "Ceylan", IdentityNumber = 12345 } ); Console.WriteLine("****************************************************"); CampaignManager campaignManager = new CampaignManager(); campaignManager.Add(new Campaign { CampaingId = 1, CampaignName = "If you buy this product second product 50% off", CampaingDetail = "The campaign will end at the end of July 2021." }); Console.WriteLine("****************************************************"); OrderManager orderManager = new OrderManager(); orderManager.MakeSale(new Products { ProductId = 1, ProductName = "E-Run", UnitPrice = 100, Stock = 250 }); }
static void Main(string[] args) { GamerManager gamerManager = new GamerManager(new NewEStateValidationManager()); SalesManager salesManager = new SalesManager(); CampaignManager campaignManager = new CampaignManager(); Gamer gamer = new Gamer() { Id = 1, BirthYear = 1995, FirstName = "Sonnur", LastName = "TAYFUROĞLU", IdentityNumber = 123456 }; Gamer gamer2 = new Gamer() { Id = 2, BirthYear = 1991, FirstName = "Merve", LastName = "Çakmak", IdentityNumber = 987456 }; Sales sales1 = new Sales(); sales1.SalesId = 1; sales1.GameName = "PUBG"; sales1.Price = 149.90; Sales sales2 = new Sales(); sales2.SalesId = 2; sales2.GameName = "GOT:Conquest"; sales2.Price = 399.99; Campaign campaign1 = new Campaign(); campaign1.CampaignName = "Yeni yıl kampanyası "; campaign1.CampaignPercent = 50; gamerManager.Delete(gamer); gamerManager.Update(gamer); Console.WriteLine(" "); salesManager.Sales(sales2, gamer); salesManager.Sales(sales1, gamer2); Console.WriteLine(" "); campaignManager.Add(campaign1, gamer, sales2); Console.WriteLine(" "); campaignManager.Add(campaign1, gamer2, sales1); Console.WriteLine(" "); campaignManager.Delete(campaign1, gamer2, sales1); campaignManager.Update(campaign1, gamer2, sales2); }
static void Main(string[] args) { GamerManager gamerManager = new GamerManager(new NewEStateUserValidationManager()); gamerManager.Add(new Gamer { Id = 1, BirthYear = 1985, FirstName = "Engin", LastName = "Demiroğ", IdentityNumber = 12345 }); }
static void Main(string[] args) { Gamer gamer = new Gamer(); gamer.Id = 1; gamer.FirstName = "Görkem"; gamer.LastName = "Aran"; gamer.NationalityId = "01234567890"; gamer.BirthDate = "1999"; GamerManager gamerManager = new GamerManager(new UserValidationManager()); gamerManager.Add(gamer); gamerManager.Update(gamer); gamerManager.Delete(gamer); Campaign campaign = new Campaign(); campaign.Id = 1; campaign.CampaignName = "İlk sipariş"; campaign.CampaignDetail = "İlk siparişte %35 indirim "; CampaignManager campaignManager = new CampaignManager(); campaignManager.Add(campaign); campaignManager.Update(campaign); campaignManager.Delete(campaign); Order order = new Order(); order.Id = 1; order.OrderName = "A oyunu satın alımı"; OrderManager orderManager = new OrderManager(); orderManager.Add(gamer, order, campaign); orderManager.Update(gamer, order); orderManager.Cancel(gamer, order); }
static void Main(string[] args) { // Gamer ekleme kısmı Gamer gamer1 = new Gamer { GamerId = 1, GamerFirstName = "Ramazan", GamerLastName = "Kavlak", GamerTc = "11245235587", GamerBirthDay = "21.01.1998" }; GamerManager gamerManager = new GamerManager(new GamerValidationManager()); gamerManager.Add(gamer1); // Game ekleme kısmı Game game1 = new Game { GameName = "Counter Strike Global Offensive", GameCost = 78, GameData = 5, GameRating = 9, GameType = "Online Fps" }; GameManager gameManager = new GameManager(); gameManager.Add(game1); //oyunu satın alma kısmı GameOwnerManager gameOwnerManager = new GameOwnerManager(); gameOwnerManager.OwnGame(game1, gamer1); //campain ile satın alma kısmı Campain campain1 = new Campain { CampainName = "Efsane Kış İndirimleri", CampainPrice = "%25" }; CampainManager campainManager = new CampainManager(); campainManager.CampainBuy(game1, campain1, gamer1); Console.ReadLine(); }