Beispiel #1
0
        static void Main(string[] args)
        {
            IGamerServices gamerServices = new GamerManager(new RealIfPersonManager());

            Gamer gamer = new Gamer();

            gamer.Id            = 1;
            gamer.FirstName     = "çağrı";
            gamer.LastName      = "candan";
            gamer.BirthYear     = new DateTime(2000, 1, 11);
            gamer.NationalityId = "1234";

            gamerServices.Add(gamer);
            gamerServices.Update(gamer);
            gamerServices.Delete(gamer);


            GameSales gameSales = new GameSales();
            Campaign  campaign  = new Campaign();

            campaign.Id           = 1;
            campaign.CampaignName = "bir alana bir bedava";

            gameSales.Id       = 1;
            gameSales.GameName = "pubg";

            ICampaignServices campaignServices = new CampaignManager();
            IGameSales        gameSales1       = new GameSalesManager();

            campaignServices.Add(campaign);
            campaignServices.Update(campaign);
            campaignServices.Delete(campaign);

            gameSales1.Sale(gameSales, campaign);
        }
Beispiel #2
0
        static void Main(string[] args)
        {
            //Gereksinim 1

            BaseGamerManager gamersManager = new GameManager(new MernisServiceAdapter());

            gamersManager.Save(new Gamer {
                DateOfBirth = new DateTime(2001, 7, 9), FirstName = "Ahmet Enes", LastName = "Polat", NationaltyId = 41722970912
            });

            //Gereksinim 2

            Gamer gamer = new Gamer();

            gamer.FirstName = "Ahmet Enes";
            gamer.LastName  = "Polat";
            Games games = new Games();

            games.Name  = "Fifa 21";
            games.Id    = 1;
            games.Price = 259;
            GameSales gameSales1 = new GameSales();

            gameSales1.Sale(games, gamer);

            //Gereksinim 3

            Campaign campaign = new Campaign();

            campaign.Campign = "% 25";
            campaign.Add(campaign);

            //Gereksinim 4
            ApplyCampaign applyCampaign = new ApplyCampaign();

            applyCampaign.applyCampaign(games);
        }