Exemple #1
0
        static void Main(string[] args)
        {
            GamerManager gamerManager = new GamerManager(new UserValidationManager());
            Gamer        gamer        = new Gamer {
                Id = 1, BirthYear = 1986, FirstName = "İLHAN", LastName = "COŞKUN", TcNo = 12345678901
            };

            gamerManager.Add(gamer);

            Console.WriteLine("************************");
            Campaign campaign = new Campaign();

            campaign.CampaignId   = 1;
            campaign.CampaignName = "İlk 10000 kişi";
            campaign.CampaignRate = 50;

            Campaign campaign2 = new Campaign();

            campaign2.CampaignId   = 2;
            campaign2.CampaignName = "Yeni Yıl İndirimi";
            campaign2.CampaignRate = 30;



            Console.WriteLine("************************");

            CampaignManager campaignManager = new CampaignManager();

            campaignManager.Add(campaign);

            CampaignManager campaignManager2 = new CampaignManager();

            campaignManager.Add(campaign2);
            campaignManager.Update(campaign2);

            Console.WriteLine("************************");
            Games game = new Games {
                GameId = 1, GameName = "FIFA21", GamePrice = 450
            };
            Games game2 = new Games {
                GameId = 1, GameName = "Call of Duty", GamePrice = 399
            };

            GameManager gameManager = new GameManager();

            gameManager.Add(game);

            GameManager gameManager2 = new GameManager();

            gameManager2.Add(game2);

            Console.WriteLine("************************");

            SalesManager salesManager = new SalesManager();

            salesManager.Buy(game, gamer);

            salesManager.BuyWithCampaign(game2, gamer, campaign2);
        }
Exemple #2
0
        static void Main(string[] args)
        {
            GamerManager gamerManager = new GamerManager(new NewStateUserValidationManager());

            gamerManager.add(new Gamer {
                Id = 1, BirthYear = 1985, FirstName = "Eyyüp", LastName = "say", IdentityNumber = 12345
            });
        }
Exemple #3
0
        static void Main(string[] args)
        {
            GamerManager gamerManager = new GamerManager(new NewEStateUserValidationManager());

            gamerManager.Add(new Gamer {
                Id = 1, BirthYear = 1989, FirstName = "ADEM", LastName = "URAS", IdentityNumber = 12345678901
            });
        }
Exemple #4
0
        static void Main(string[] args)
        {
            GamerManager gamerManager = new GamerManager(new UserValidationManager());

            gamerManager.Add(new Gamer {
                Id = 1, BirthYear = 2000, FirstName = "Doğa", LastName = "Güven", TcNo = "58658987550"
            });

            CampaignManager campaignManager = new CampaignManager();

            campaignManager.CampaignAdd(new Campaign {
                CampaignId = 12321, CampaignName = "Sepette %25 indirim!", CampaignDate = "3-8 Mart Arası"
            });
        }