Beispiel #1
0
 public void Update(Gamer gamer)
 {
     Console.WriteLine("Gamer Updated!");
 }
 public void Update(Campaign campaign, Gamer gamer, Sales sales)
 {
     Console.WriteLine(campaign.CampaignName + " kampanyası yenilendi ");
 }
Beispiel #3
0
 public void Delete(Gamer gamer)
 {
     Console.WriteLine("Kayıt silindi.");
 }
Beispiel #4
0
 public bool Validate(Gamer gamer)
 {
     return(true);
 }
Beispiel #5
0
 public BasketManager(Game game, Gamer Gamer, SalesCampaign salesCampaig)
 {
     _salesCampaign = salesCampaig;
     _game          = game;
     _gamer         = Gamer;
 }
Beispiel #6
0
 public void Delete(Gamer gamer)
 {
     Console.WriteLine("Kayıt Güncellendi");
 }
Beispiel #7
0
 public void Buy(Gamer gamer, Campaign campaign, Game game)
 {
     Console.WriteLine("Satış gerçekleşti.Oyunun adı: " + game.GameName + " " + "Oyuncunun adı: " + gamer.FirstName + " Kampanyanın adı:" + " " + campaign.CampaignName);
 }
        public bool Validate(Gamer gamer)
        {
            KPSPublicSoapClient client = new KPSPublicSoapClient(KPSPublicSoapClient.EndpointConfiguration.KPSPublicSoap);

            return(client.TCKimlikNoDogrulaAsync(new TCKimlikNoDogrulaRequest(new TCKimlikNoDogrulaRequestBody(gamer.IdentityNumber, gamer.FirstName, gamer.LastName, gamer.BirthYear))).Result.Body.TCKimlikNoDogrulaResult);
        }
Beispiel #9
0
 public void SellCampaign(Gamer gamer, Game game, Campaign campaign)
 {
     Console.WriteLine("{0} adlı oyuncu {1} oyununu {2} kampanyası ile satın aldı.", gamer.Name, game.Name, campaign.Name);
 }
Beispiel #10
0
 public void BuyGame(Games games, Gamer gamer)
 {
     Console.WriteLine(gamer.FirstName + " " + "Successfully bought:" + games.GameName);
 }
Beispiel #11
0
 public void AddToCart(Games games, Gamer gamer)
 {
     Console.WriteLine(games.GameName + " " + ":Game successfully added to" + " " + gamer.FirstName + "'s" + " cart");
 }
Beispiel #12
0
 public void Add(Gamer gamer)
 {
     Console.WriteLine("Kayıt Olundu");
 }
 internal void Add(Gamer gamer, Campaign campaign)
 {
     Console.WriteLine(gamer.FirstName + " " + "Adlı Oyuncu" + " " + campaign.CampaignName + " " + "Uyguladı");
 }
 public void Sale(Campaign campaign, Gamer gamer)
 {
     Console.WriteLine(gamer.Id + "Numaralı Müşteri" + campaign.CampaignName + "Kampanyayı uyguladı");
 }
 public void Delete(Gamer gamer)
 {
     Console.WriteLine("Hesap silindi");
 }
Beispiel #16
0
 public void Sales(Gamer gamer, Game game)
 {
     Console.WriteLine("{0} adlı oyuncu {1} oyununu satın aldı.", gamer.Name, game.Name);
 }
 public void Update(Gamer gamer)
 {
     Console.WriteLine("Hesap güncellendi");
 }
Beispiel #18
0
 public void Delete(Gamer gamer)
 {
     Console.WriteLine("Oyuncu Silindi.");
 }
Beispiel #19
0
 public void Update(Gamer gamer)
 {
     Console.WriteLine("Kayıt Silindi");
 }
Beispiel #20
0
 public void Update(Gamer gamer)
 {
     Console.WriteLine("Oyuncu Bilgileri Guncellendi.");
 }
 // DOğrula
 //UservalidaManager true/false olacağından
 bool Validate(Gamer gamer);
Beispiel #22
0
 public void Delete(Game game, Campaign campaign, Gamer gamer)
 {
     Console.WriteLine("İndirim silindi");
 }
Beispiel #23
0
 public void sale(Gamer gamer, Campaign campaign)
 {
     Console.WriteLine("The game has been sold to the gamer: " + gamer.FirstName + gamer.LastName +
                       " with " + campaign.CampaingName + " with " + campaign.discountRate + " discount rate");
 }
Beispiel #24
0
 public void Update(Game game, Campaign campaign, Gamer gamer)
 {
     Console.WriteLine("İndirim güncellendi");
 }
 public void Delete(Campaign campaign, Gamer gamer, Sales sales)
 {
     Console.WriteLine(campaign.CampaignName + " kampanyası silindi ");
 }
Beispiel #26
0
 public void Add(Game game, Campaign campaign, Gamer gamer)
 {
     Console.WriteLine("İndirim eklendi");
 }
 public void Add(Campaign campaign, Gamer gamer, Sales sales)
 {
     Console.WriteLine(gamer.FirstName + " adlı kullanıcı " + sales.GameName + " oyununu % " +
                       campaign.CampaignPercent + " indirim miktarı ile " + campaign.CampaignName + " kampanyasından faydalanarak satın almıştır ");
 }
Beispiel #28
0
        static void Main(string[] args)
        {
            GamerManager gamerManager = new GamerManager(new NewEStateUserValidationSystem());

            gamerManager.Add(new Gamer
            {
                Id             = 1,
                UserName       = "******",
                FirstName      = "Ahmet",
                LastName       = "Yoldaş",
                BirthYear      = "1999",
                IdentityNumber = 0123456,
                Password       = "******",
            });
            gamerManager.Add(new Gamer
            {
                Id             = 2,
                UserName       = "******",
                FirstName      = "RUMEYSA ",
                LastName       = "ÖZDEMİR",
                BirthYear      = "1994",
                IdentityNumber = 12345,
                Password       = "******"
            });;


            Game game1 = new Game()
            {
                Id = 1, Name = "Hitman 2", Price = 79.90
            };
            Game game2 = new Game()
            {
                Id = 2, Name = "Assassin's Creed 2 Brotherhood", Price = 54.90
            };

            GameManager gameManager = new GameManager();

            gameManager.Add(game1);
            gameManager.Add(game2);

            SpecialOffer specialOffer1 = new SpecialOffer()
            {
                Id = 1, Name = "Büyük Cuma Kampanyası", DiscountRate = 15
            };
            SpecialOffer specialOffer2 = new SpecialOffer()
            {
                Id = 2, Name = "Dev Teknoloji Kampanyası", DiscountRate = 20
            };

            SpecialOfferManager specialOfferManager = new SpecialOfferManager();

            specialOfferManager.Add(specialOffer1);
            specialOfferManager.Add(specialOffer2);

            Gamer gamer1 = new Gamer()
            {
                Id             = 1,
                IdentityNumber = 0123456,
                FirstName      = "Ahmet",
                LastName       = "Yoldaş",
                BirthYear      = "1999",
                UserName       = "******",
                Password       = "******"
            };

            SaleManager saleManager = new SaleManager();

            saleManager.Sale(gamer1, game1);
            saleManager.DiscountedSale(gamer1, game2, specialOffer2);
        }
Beispiel #29
0
 public void Update(Gamer gamer)
 {
     Console.WriteLine("Kayıt güncellendi.");
 }
Beispiel #30
0
 public void Delete(Gamer gamer)
 {
     Console.WriteLine("Gamer Deleted!");
 }