private void Print(GemHolderDto gemHolder) { foreach (var gem in gemHolder.Repository) { Console.Write("{0}: {1}; ", gem.Gem, gem.Count); } }
public GemHolder(GemHolderDto dto) { Gems = dto.Repository.ToDictionary(x => x.Gem, x => x.Count); }