public AutoMapperRawDeckConverter(CacheSingleton <Dictionary <int, Card> > cacheCards, RawDeckConverter converter) { //if (allCards == null) // System.Diagnostics.Debugger.Break(); this.allCards = cacheCards.Get(); this.converter = converter; }
public InfoByDate <ICollection <CardWithAmount> > GetLastCollectionInMemory(RawDeckConverter converter) { InfoByDate <ICollection <CardWithAmount> > lastCollectionInMemory = null; var info = GetLastCollection(); //if (lastCollectionInMemory == null || lastCollectionInMemory.DateTime == default(DateTime)) { //var info = GetLastCollection(); lastCollectionInMemory = new InfoByDate <ICollection <CardWithAmount> >(info.DateTime, converter.LoadCollection(info.Info)); } return(lastCollectionInMemory); }
public AutoMapperRawDeckConverter(RawDeckConverter converter) { this.converter = converter; }