Esempio n. 1
0
 public void DiscountedAdd(Order order, Gamer gamer)
 {
     if (_userValidationService.Validate(gamer) == true)
     {
         _campaignService.ApplyCampaign(order);
         Console.WriteLine($"Your Order number is {order.OrderNo }");
         Console.WriteLine($"New Price is {order.Price}");
         Console.WriteLine("Giriş başarılı");
     }
     else
     {
         Console.WriteLine($"You must enter the system first.");
     }
 }
Esempio n. 2
0
        public void CreateCampaignOrder(Gamer gamer, Game game, Campaign campaign)
        {
            double discountPrice = _campaignService.ApplyCampaign(game, campaign);

            Console.WriteLine(gamer.Name + " adlı oyuncu " + game.Name + " adlı oyunu " + campaign.Name + " kampanyası ile " + discountPrice + " TL'ye satın aldı");
        }