static void Main(string[] args) { Gamer gamer = new Gamer() { Id = 1, TCNO = "12345678", Name = "MERT", Surname = "BAŞKAYA", BirthYear = "1999" }; GamerOperationManager gamerOperationManager = new GamerOperationManager(new AccountVerifierManager()); gamerOperationManager.SignUp(gamer); BaseGameSaleManager baseGameSaleManager = new BaseGameSaleManager(); baseGameSaleManager.Sell(gamer, new Game() { GameId = 1, Name = "COD", Price = 80 }); ICampaignService campaignManager = new CampaingManager(); GameSaleManager gameSaleManager = new GameSaleManager(campaignManager, new Campaign() { CampaignId = 1, Discount = 15, Name = "Almost For Free" }); gameSaleManager.Sell(gamer, new Game() { GameId = 2, Name = "Battlefield", Price = 100 }); }
public static void Main(string[] args) { GamerManager gamerManager = new GamerManager(new UserValidationManager()); gamerManager.Registration(new Gamer { NationalityNumber = "33355544422", FirstName = "Selim", LastName = "Kazancı", DateBirth = 14 - 01 - 1998 }); GamerManager gamerManager2 = new GamerManager(new NewLisValidationManager()); gamerManager2.Registration(new Gamer { NationalityNumber = "33355544422", FirstName = "Selim", LastName = "Kazancı", DateBirth = 14 - 01 - 1998 }); GameSaleManager gameSaleManager = new GameSaleManager(); gameSaleManager.Sale(new Gamer { NationalityNumber = "33355544422", FirstName = "Selim", LastName = "Kazancı", DateBirth = 14 - 01 - 1998 }); CampaigneManager campaigneManager = new CampaigneManager(); campaigneManager.CampaingneEnter(); campaigneManager.CampaingneUpdate(); campaigneManager.NewCampaingneEnter(); }
static void Main(string[] args) { Customer customer = new Customer { Id = 1, FirstName = "Kübra", LastName = "Kılıç", TcNo = "22222222222", BirtOfYear = 1997 }; ICustomerService customerService = new CustomerManager(new CustomerControlManagerAdapter()); customerService.Add(customer); Campaign campaignWinter = new Campaign() { Discount = 20 }; Campaign campaignBlackFriday = new Campaign() { Discount = 50 }; Game game = new Game() { Name = "Lara Croft Tomb Raider", Platform = "PC", Price = 400, Type = "Action" }; IGameSaleService gameSaleService = new GameSaleManager(new GameSaleCampaignManager(campaignBlackFriday)); gameSaleService.Sale(customer, game); }
static void Main(string[] args) { GamerManager gamer = new GamerManager(new UserValidationManager()); gamer.NewRegistration(new Gamer { DateOfBrith = 1999, FisrtName = "HÜSEYİN", LastName = "PALAMAR", Id = 1 }); AdminManager admin = new AdminManager(new AdminValidationManager()); admin.NewRegistration(new User { DateOfBrith = 1999, FisrtName = "HÜSEYİN", LastName = "PALAMAR", Id = 1, IdentificationNumber = 123456 }); GameSaleManager gameSale = new GameSaleManager(); gameSale.GameSale(new Game { GameName = "CSGO", GamePrice = 150, SerialNumber = "1" }, new Gamer { FisrtName = "İlkay" }); CampaignManager campaign = new CampaignManager(); campaign.AddCampaign(new Campaign { CampaignName = "Efsane Cuma", Id = 2, CampaignDescription = "Avantajlı urünleri kaçırmayın", CampaignDuration = "18 Hazirana kadar Geçerli" }); }
static void Main(string[] args) { Customer customer1 = new Customer(); customer1.Id = 1; customer1.FirstName = "Ayşe"; customer1.LastName = "Kaya"; customer1.NationalityId = "12456890532"; customer1.DateOfBirth = new DateTime(1994, 2, 3); Customer customer2 = new Customer(); customer2.Id = 1; customer2.FirstName = "Ali"; customer2.LastName = "Emin"; customer2.NationalityId = "19853656572"; customer2.DateOfBirth = new DateTime(1988, 7, 3); Campaign campaign1 = new Campaign() { Id = 12, CampaignName = "Kampanya1", CampaignRate = 25 }; Campaign campaign2 = new Campaign() { Id = 22, CampaignName = "Kampanya2", CampaignRate = 10 }; Games games1 = new Games() { Id = 1, GameName = "Oyun1", Price = 100 }; Games games2 = new Games() { Id = 2, GameName = "Oyun2", Price = 200 }; Games games3 = new Games() { Id = 3, GameName = "Oyun3", Price = 300 }; CustomerManager customerManager = new CustomerManager(); customerManager.Add(customer1); customerManager.Delete(customer2); CampaignManager campaignManager = new CampaignManager(); campaignManager.Add(campaign1); campaignManager.Delete(campaign2); GameSaleManager gameSaleManager = new GameSaleManager(); gameSaleManager.Sale(customer1, games1, campaign1); }
static void Main(string[] args) { //GamerManager gamerManager1 = new GamerManager(new GamerCheckManager()); //gamerManager1.Register(new Gamer { FirstName = "Lady", LastName = "Gaga", NationalityNumber = "123456789012" }); GameSaleManager saleManager = new GameSaleManager(); // saleManager.Sales(new Game {Name="Counter-Strike",Price=30 },new Gamer {FirstName="Salem",LastName="Ursula" }); saleManager.CampaignSales(new Game { Name = "The Witcher", Price = 200 }, new Gamer { FirstName = "Britney", LastName = "Spears" }, new Campaign { CampName = "Black Friday", NewPrice = 103 }); }
static void Main(string[] args) { Gamer gamer = new Gamer { Id = 1, FirstName = "Emre Can", LastName = "UĞURLU", DateOfBirth = new DateTime(1999, 10, 11), TcNo = "12345678901" }; Game game = new Game { Id = 1, Name = "GTA 5", Price = 100 }; Campaign campaign = new Campaign { Id = 1, Name = "Büyük Mayıs", Discount = 10, }; IGamerManager gamerManager = new GamerManager(new GamerCheck()); gamerManager.Add(gamer); IGameSaleManager gameSaleManager = new GameSaleManager(); gameSaleManager.Retrocede(game, gamer); ICampaignManager campaignManager = new CampaignManager(); campaignManager.Add(campaign); IGameSaleManager gameSaleManager1 = new GameSaleManager(); gameSaleManager1.Buy(game, gamer, campaign); }