Example #1
0
        public IActionResult DoHorseStep(int gameId, int horseId)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }

            var game  = StaticDictionnaryStorage.GetData <Game>(gameId);
            var horse = game.Horses.First(h => h.HorseId == horseId);

            switch (horse.Name)
            {
            case "providerSearch":
                RageService.CallProviderSearch();
                break;

            case "fiveLastClaims":
                RageService.CallFiveLastClaims();
                break;

            case "leGrosRPG":
                RageService.CallLeGrosRPG();
                break;

            case "benefitSummary":
                RageService.CallBenefitSummary();
                break;

            default:
                RageService.CallRandomMethod();
                break;
            }

            return(Ok());
        }
Example #2
0
        public void TestCallLeGrosRPG()
        {
            var stopWatch = new Stopwatch();

            stopWatch.Start();
            RageService.CallLeGrosRPG();
            stopWatch.Stop();
            Console.Write(stopWatch.ElapsedMilliseconds);
        }