Esempio n. 1
0
        public PackUnit CreatePack(string packTitle = null, PackTypeVariations packType = PackTypeVariations.cards52)
        {
            PackUnit packUnit = _packFactory.Create(packTitle, packType);
            _packStorage.Add(packUnit);

            return packUnit;
        }
Esempio n. 2
0
        public PackUnit GetPackByTitle(string packTitle)
        {
            PackUnit packUnit = _packStorage.Packs
                .Where(singlePack => singlePack.Title == packTitle)
                .FirstOrDefault();

            return packUnit;
        }
Esempio n. 3
0
 public void ShufflePack(PackUnit pack)
 {
     pack.Shuffle(_choosenMixer.Shuffle);
 }