Exemplo n.º 1
0
        static void Main(string[] args)
        {
            GamerManager gamerManager = new GamerManager(new UserValidationManager());

            gamerManager.Add(new Gamer
            {
                Id             = 1,
                BirthYear      = 1985,
                FirstName      = "Özge",
                LastName       = "Aktaş",
                IdentityNumber = 12345
            });



            OrderManager orderManager = new OrderManager();
            Campaign     campaign     = new Campaign();

            campaign.CampaignName     = "indirim kampanyası";
            campaign.CampaignDiscount = 15;
            orderManager.CampaignSystem(campaign);

            CampaignManager campaignManager = new CampaignManager();

            campaignManager.Add(campaign);
        }
Exemplo n.º 2
0
        static void Main(string[] args)
        {
            //gamermanager gamermanager = new gamermanager(new uservalidationmanager());
            //gamermanager.add(new gamer { ıd = 1, birthyear = 1985, firstname = "öznur",
            //    lastname = "gür",ıdentitynumber = 12345   });

            Gamer gamer = new Gamer {
                Id = 1, BirthYear = 1985, FirstName = "Öznur", LastName = "Gür", IdentityNumber = 12345
            };
            GamerManager gamerManager = new GamerManager(new UserValidationManager());

            gamerManager.Add(gamer);


            Game game = new Game {
                GameName = "GTA", GameCost = 50, GameRating = 8
            };
            GameManager gameManager = new GameManager();

            gameManager.Add(game);

            GameOwnerManager gameOwnerManager = new GameOwnerManager();

            gameOwnerManager.OwnGame(game, gamer);

            Campaign campaign = new Campaign {
                CampaignName = "BUY MORE"
            };
            CampaignManager campaignManager = new CampaignManager();

            campaignManager.BuyWithCampaign(gamer, game, campaign);
        }
Exemplo n.º 3
0
        static void Main(string[] args)
        {
            GamerManager gamerManager = new GamerManager(new UserValidationManager());

            gamerManager.Add(new Gamer {
                Id = 1, BirthYear = 2002, FirstName = "Metehan Melih", LastName = "Yapan", İdentitiyNumber = 12313132131
            });
        }
Exemplo n.º 4
0
        static void Main(string[] args)
        {
            GamerManager gamerManager = new GamerManager(new NewEStateUserValidationManager());

            gamerManager.Add(new Gamer {
                Id             = 1,
                BirthYear      = 2000,
                FirstName      = "Berkay",
                LastName       = "Karabulut",
                IdentityNumber = 12345
            });

            OrderManager orderManager = new OrderManager();

            orderManager.New(new Gamer  {
                Id             = 1,
                BirthYear      = 2000,
                FirstName      = "Berkay",
                LastName       = "Karabulut",
                IdentityNumber = 12345
            });
        }