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 }); }
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"); } }
public void GetGameSale(GamerManager gamerManager, Gamer gamer, Game game) { Console.WriteLine(gamer.FirstName + " isimli oyuncu " + game.GamePrice + " Tl'ye oyunu satın aldı"); }