Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            GamerManager gamerManager = new GamerManager(new UserValidationManager());

            gamerManager.Add(new Gamer {
                Id = 1, DogumYili = 1984, Adi = "Emre", Soyad = "Keskiner", TcKimlikNo = 12345
            });
        }
Ejemplo n.º 2
0
        private static void GamerManagerTest()
        {
            GamerManager gamerManager = new GamerManager(new UserValidationManager(new KPSPublicSoapClient(new KPSPublicSoapClient.EndpointConfiguration())));

            //GamerManager gamerManager = new GamerManager(new FakeUserValidationManager());

            Gamer gamer = new Gamer()
            {
                Id         = 1,
                BirthDate  = new DateTime(1901, 1, 1),
                IdentityNo = "1234567890",
                FirstName  = "XXXXX",
                LastName   = "ZZZZZ"
            };

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