static void Main(string[] args) { GamerManager gamerManager = new GamerManager(new GamerCheckManager()); Gamer gamer1 = new Gamer { Id = 1, FirstName = "İREM", LastName = "DİLİK", BirthYear = 2001, IdentityNumber = 12345678910 }; gamerManager.Add(gamer1); gamerManager.Update(gamer1); gamerManager.Delete(gamer1); GameManager gameManager = new GameManager(); Game game1 = new Game { Name = "LOL", Price = 50 }; gameManager.Add(game1); gameManager.Update(game1); gameManager.Delete(game1); CampaignManager campaignManager = new CampaignManager(); Campaign campaign1 = new Campaign { Name = "Kış İndirimi", Percentage = 25 }; campaignManager.Add(campaign1); campaignManager.Delete(campaign1); campaignManager.Update(campaign1); SaleManager saleManager = new SaleManager(); saleManager.CampaignSale(gamer1, game1, campaign1); saleManager.GameSale(gamer1, game1); }
static void Main(string[] args) { Gamer gamer1 = new Gamer { FirstName = "Merve", LastName = "Kardeş", TcNo = "12345678910", YearOfBirth = 1998 }; Gamer gamer2 = new Gamer { FirstName = "Meral", LastName = "Kardeş", TcNo = "12345678911", YearOfBirth = 1993 }; Game game1 = new Game { Id = 1, Name = "Fifa", Price = 100 }; Game game2 = new Game { Id = 2, Name = "Monopoly", Price = 200 }; Campaign campaign = new Campaign { Id = 1, Name = "Black Friday" }; GamerManager gamerManager = new GamerManager(new UserValidationManager()); gamerManager.Add(gamer1); gamerManager.Add(gamer2); SaleManager saleManager = new SaleManager(); saleManager.GameSale(game1, gamer1, campaign); }