static void Main(string[] args) { GamerManager gamerManager = new GamerManager(new NewEStateUserValidationManager()); gamerManager.Add(new Gamer { Id = 1, BirthYear = 1998, FirstName = "Serhat", LastName = "Ardic", IdentityNumber = 12345 }); Gamer gamer2 = new Gamer(); gamer2.BirthYear = 1998; gamer2.FirstName = "Serhat"; gamer2.LastName = "Ardic"; gamer2.IdentityNumber = 12345; GamerManager gamerManager1 = new GamerManager(new NewEStateUserValidationManager()); gamerManager.Add(gamer2); OrderManager orderManager = new OrderManager(); orderManager.Order(gamer2); CampaignManager campaignManager = new CampaignManager(); campaignManager.Discount(gamer2); campaignManager.Gift(gamer2); campaignManager.GiftDelete(gamer2); }
static void Main(string[] args) { User user1 = new User() { UserId = 1, IdentityId = "12345678910", UserFirstName = "Emre", UserSurname = "Erdal", DateofBirth = new DateTime(1996, 08, 18), UserEmail = "*****@*****.**", UserPhoneNumber = "05310120101" }; User user2 = new User() { UserId = 2, IdentityId = "123456", UserFirstName = "Engin", UserSurname = "Demiroğ", DateofBirth = new DateTime(1985, 01, 06), UserEmail = "*****@*****.**", UserPhoneNumber = "05310120102" }; UserManager userManager = new UserManager(new UserValidationManager()); userManager.Create(user1); userManager.Create(user2); userManager.Users(); Game game1 = new Game() { GameId = 1, GameName = "AnyGame", GamePrice = 199.50 }; GameManager gameManager = new GameManager(); gameManager.Buy(user1, game1); gameManager.Games(); Campaign campaign1 = new Campaign() { CampaignId = 1, CampaignName = "TheCampaign", CampaignRate = 0.2 }; CampaignManager CampaignManager = new CampaignManager(); CampaignManager.Discount(game1, campaign1); Console.ReadKey(); }