Exemple #1
0
 public void Add(Gamer gamer)
 {
     if (_checkService.Check(gamer) == true)
     {
         Console.WriteLine(gamer.FirstName + " " + gamer.LastName + " " + "Kayıt Oldu!");
     }
 }
        public void ShouldNotRespondToSuccessWhenEndpointChanged()
        {
            _goodCheckService.Check(Arg.Any <Endpoint>()).Returns(call =>
            {
                TouchEndpoint(_validEndpoint);

                return(new EndpointCheckResult {
                    Start = DateTimeOffset.UtcNow, Stop = DateTimeOffset.UtcNow, Success = true
                });
            });

            _service.ProcessEndpoint(_validEndpoint, 0);

            _goodCheckService.Received().Check(Arg.Any <Endpoint>());
            _stateService.DidNotReceive().GetStatus(Arg.Any <int>());
            _stateService.DidNotReceive().AddEndpointCheckResult(Arg.Any <int>(), Arg.Any <EndpointCheckResult>(), Arg.Any <bool>());
        }
        public bool Get(int shift, string code)
        {
            bool checkResult = _checkService.Check(shift, code);

            _logger.LogInformation($"Shift: {shift}; Code: {code}; Result: {checkResult}");

            return(checkResult);
        }
 public void GamerAdd(Gamer gamer)
 {
     if (_govermentCheck.Check(gamer))
     {
         Console.WriteLine(gamer.FirstName + " adli oyuncu sisteme eklendi.");
     }
     else
     {
         throw new Exception("bu oyuncu sisteme kayitli degil");
     }
 }
Exemple #5
0
 public void Add(Player player)
 {
     if (_checkService.Check(player))
     {
         Console.WriteLine("Player added.");
     }
     else
     {
         Console.WriteLine("Player  wasn't added");
     }
 }