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()); }
public void TestCallBenefitSummary() { var stopWatch = new Stopwatch(); stopWatch.Start(); RageService.CallBenefitSummary(); stopWatch.Stop(); Console.Write(stopWatch.ElapsedMilliseconds); }
public void TestCallFiveLastClaims() { var stopWatch = new Stopwatch(); stopWatch.Start(); RageService.CallFiveLastClaims(); stopWatch.Stop(); Console.Write(stopWatch.ElapsedMilliseconds); }
public void TestCallProviderSearch() { var stopWatch = new Stopwatch(); stopWatch.Start(); RageService.CallProviderSearch(); stopWatch.Stop(); Console.Write(stopWatch.ElapsedMilliseconds); }
public void TestCallRandomMethod() { var stopWatch = new Stopwatch(); stopWatch.Start(); RageService.CallRandomMethod(); stopWatch.Stop(); Console.Write(stopWatch.ElapsedMilliseconds); }