public FlashcardTestArgs( CardSideToTest cardSideToTest, IEnumerable <Guid> collectionIdsToTest) { CollectionIds = collectionIdsToTest; CardSideToTest = cardSideToTest; }
public async Task Initialize(IEnumerable <Guid> collectionIds, CardSideToTest sideToTest) { this.sideToTest = sideToTest; this.Cards = (await Task.WhenAll(collectionIds .Select(async x => new { CollectionId = x, CardIds = await this.cardStorageService.GetCards(x) }))) .ToDictionary(x => x.CollectionId, x => x.CardIds.Select(y => y.CardId).ToList()); }