Ejemplo n.º 1
0
 public ActiveCardRepository(CardRepositoryDto dto)
 {
     Cards1Level = dto.Cards1Level.Select(x => new Card(x)).ToList();
     Cards2Level = dto.Cards2Level.Select(x => new Card(x)).ToList();
     Cards3Level = dto.Cards3Level.Select(x => new Card(x)).ToList();
 }
Ejemplo n.º 2
0
 public InactiveCardRepository(CardRepositoryDto dto)
 {
     Cards1Level = new Queue<Card>(dto.Cards1Level.Select(x => new Card(x)));
     Cards2Level = new Queue<Card>(dto.Cards2Level.Select(x => new Card(x)));
     Cards3Level = new Queue<Card>(dto.Cards3Level.Select(x => new Card(x)));
 }