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

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

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