public static void TemplateMethodRelatorios() { List <Conta> contas = new List <Conta>() { new Conta(0003, "BB01", "r santa rosa", "1146086451", "*****@*****.**", 00502, 2, "Sebastiao", 2000, new DateTime(2015, 1, 1)) , new Conta(0003, "BB03", "r santa rosa", "1146086451", "*****@*****.**", 00503, 2, "Sebastiao Martins", 3000, new DateTime(2015, 1, 1)) , new Conta(0005, "BB05", "r santa rosa", "1146086451", "*****@*****.**", 00505, 2, "Sebastiao Martins Pereira", 5000, new DateTime(2015, 1, 1)) }; TemplateRelatorio relatorio = new Relatorio(Enum.Enums.TipoRelatorio.Complexo); IDictionary <Conta, string> relatorios = relatorio.GeraRelatorio(contas); foreach (var item in relatorios.Values) { Console.WriteLine("{0}", item); Console.ReadKey(); } }