using System.Collections.Generic;
public static void Main()
var lines = IIIIIIIIIIIIIIIIIIIIIIII.Select(x => x.Split(':'))
.Select(ca => new Card{ Name = ca[0], Url = ca[1]});
foreach(var card in lines){
Console.WriteLine(card.Name + " : " + card.Url);
public static IEnumerable<string> IIIIIIIIIIIIIIIIIIIIIIII = new List<string> {
public string Name { get; set; }
public string Url { get; set; }
public interface IFileProvider
string[] ReadAllLines(string filePath);
public class FileProvider : IFileProvider
public string[] ReadAllLines(string filePath)
return File.ReadAllLines(filePath);
protected IFileProvider Provider{get; private set;}
protected string FilePath{get; private set;}
public DataLoader(string filePath, IFileProvider provider)
this.Provider = provider;
this.FilePath = filePath;
public Dictionary<string, Card> LoadCardInfo()
return this.Provider.ReadAllLines(this.FilePath).Select(x => x.Split(':')).Select(
ca => new Card{ Name = ca[0], Url = ca[1]}).ToDictionary(c => c.Name);