예제 #1
0
        static void Main(string[] args)
        {
            GamerManager gamerManager = new GamerManager(new NewEStateUserValidationManager());

            gamerManager.Add(new Gamer
            {
                Id             = 1,
                BirthYear      = 1985,
                FirstName      = "Engin",
                LastName       = "Demiroğ",
                IdentityNumber = 12345
            });
        }
예제 #2
0
        static void Main(string[] args)
        {
            Gamer gamer = new Gamer();

            gamer.Id            = 1;
            gamer.FirstName     = "Görkem";
            gamer.LastName      = "Aran";
            gamer.NationalityId = "01234567890";
            gamer.BirthDate     = "1999";

            GamerManager gamerManager = new GamerManager(new UserValidationManager());

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

            Campaign campaign = new Campaign();

            campaign.Id             = 1;
            campaign.CampaignName   = "İlk sipariş";
            campaign.CampaignDetail = "İlk siparişte %35 indirim ";

            CampaignManager campaignManager = new CampaignManager();

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

            Order order = new Order();

            order.Id        = 1;
            order.OrderName = "A oyunu satın alımı";

            OrderManager orderManager = new OrderManager();

            orderManager.Add(gamer, order, campaign);
            orderManager.Update(gamer, order);
            orderManager.Cancel(gamer, order);
        }
예제 #3
0
        static void Main(string[] args)
        {
            // Gamer ekleme kısmı
            Gamer gamer1 = new Gamer {
                GamerId = 1, GamerFirstName = "Ramazan", GamerLastName = "Kavlak", GamerTc = "11245235587", GamerBirthDay = "21.01.1998"
            };

            GamerManager gamerManager = new GamerManager(new GamerValidationManager());

            gamerManager.Add(gamer1);

            // Game ekleme kısmı

            Game game1 = new Game {
                GameName = "Counter Strike Global Offensive", GameCost = 78, GameData = 5, GameRating = 9, GameType = "Online Fps"
            };
            GameManager gameManager = new GameManager();

            gameManager.Add(game1);

            //oyunu satın alma kısmı

            GameOwnerManager gameOwnerManager = new GameOwnerManager();

            gameOwnerManager.OwnGame(game1, gamer1);

            //campain ile satın alma kısmı

            Campain campain1 = new Campain {
                CampainName = "Efsane Kış İndirimleri", CampainPrice = "%25"
            };
            CampainManager campainManager = new CampainManager();

            campainManager.CampainBuy(game1, campain1, gamer1);


            Console.ReadLine();
        }