Beispiel #1
0
        private Roulette GetRandomRouletteByOpenStatus(bool openStatus)
        {
            var randomRange = new Random();
            var roulettes   = AllRoulletes.Where(roulette => roulette.IsRouletteOpen == openStatus).ToList().ToArray();

            return(roulettes[randomRange.Next(roulettes.Length)]);
        }
Beispiel #2
0
        public Guid CreateCasinoSingleRoulette()
        {
            Roulette roullete = new Roulette();

            AllRoulletes.Add(roullete);
            return(roullete.ID);
        }
Beispiel #3
0
 private bool RoulleteExistsById(Guid Id)
 {
     return(AllRoulletes.Where(roulette => roulette.ID == Id).Count() > 0);
 }
Beispiel #4
0
 private Roulette GetRouletteById(Guid Id)
 {
     return(AllRoulletes.Where(roulette => roulette.ID == Id).FirstOrDefault());
 }