Exemplo n.º 1
0
        static void Main(string[] args)
        {
            Gamer gamer = new Gamer()
            {
                Id = 1, Name = "Salih Bora", LastName = "Öztürk", BirthYear = "1999", IdentityNumber = "00000000000"
            };
            Game game = new Game()
            {
                GameId = 1, GameName = "Crossfire"
            };
            Campain campain = new Campain()
            {
                CampainId = 1, CampainName = "BlackFriday"
            };

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

            gamerManager.Add(gamer);
            GameManager gameManager = new GameManager();

            gameManager.Add(game);
            CampainManager campainManager = new CampainManager();

            campainManager.Add(campain);
            SalesManager sales = new SalesManager();

            sales.Sell(gamer, game, campain);
        }
Exemplo n.º 2
0
 public void Sell(Gamer gamer, Game game, Campain campain)
 {
     Console.WriteLine("Sayın " + gamer.Name + ", " + game.GameName + " oyunu" + campain.CampainName + "kampanyası ile satın alınmıştır.");
 }
Exemplo n.º 3
0
 public void Update(Campain campain)
 {
     Console.WriteLine(campain.CampainName + " kampanyası başarıyla güncellenmiştir.");
 }
Exemplo n.º 4
0
 public void Add(Campain campain)
 {
     Console.WriteLine(campain.CampainName + " kampanyası başarıyla eklenmiştir.");
 }
Exemplo n.º 5
0
 public void Delete(Campain campain)
 {
     Console.WriteLine(campain.CampainName + " kampanyası başarıyla silinmiştir.");
 }