コード例 #1
0
ファイル: Program.cs プロジェクト: seymacelebi/GameProject
 static void Main(string[] args)
 {
     Concrete.GamerManager gamerManager = new Concrete.GamerManager(new UserValidationManager());
     gamerManager.Add(new Entities.Gamer {
         Id = 1, BirthYear = 1985, FirstName = "ENGİN", LastName = "DEMİROĞ", NationalityId = 123444
     });
 }
コード例 #2
0
        public bool Validation(GamerManager gamer)
        {
            if (gamer.Id == "1" && gamer.FirstName == "İrem" && gamer.LastName == "Üstün" && gamer.NationalityId == "1234567890" && gamer.DateOfBirth == new DateTime(1998, 2, 4))
            {
                return(true);
            }

            else
            {
                throw new Exception("Not a valid person");
            }
        }
コード例 #3
0
 public void GetGameSale(GamerManager gamerManager, Gamer gamer, Game game)
 {
     Console.WriteLine(gamer.FirstName + " isimli oyuncu " + game.GamePrice + " Tl'ye oyunu satın aldı");
 }