Exemplo n.º 1
0
        static void Main(string[] args)
        {
            NewStateUserValidationManager newStateUserValidationManager = new NewStateUserValidationManager();
            GamerManager gamerManager = new GamerManager(newStateUserValidationManager);
            Gamer        gamer        = new Gamer {
                NationalityId = "12345", FirstName = "Engin", LastName = "Demirog", DateOfBirth = 1985
            };

            gamerManager.Add(gamer);

            GameManager gameManager = new GameManager(new CampaignManager());
            Game        game        = new Game {
                GamePrice = 180.99
            };

            gameManager.GetGameSale(gamerManager, gamer, game);
        }
Exemplo n.º 2
0
        static void Main(string[] args)
        {
            NewStateUserValidationManager newStateUserValidationManager = new NewStateUserValidationManager();
            GamerManager gamerManager = new GamerManager(newStateUserValidationManager);
            Gamer        gamer        = new Gamer {
                NationalityId = "111111", FirstName = "Tuba", LastName = "Yaşa", DateOfBirth = 1998
            };

            gamerManager.Add(gamer);

            GameManager gameManager = new GameManager(new CampaignManager());
            Game        game        = new Game {
                GamePrice = 200
            };

            gameManager.GetGameSale(gamerManager, gamer, game);
        }