summaryrefslogtreecommitdiff
path: root/src/app/BloggerToDasBlog.Console/Program.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/app/BloggerToDasBlog.Console/Program.cs')
-rw-r--r--src/app/BloggerToDasBlog.Console/Program.cs19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/app/BloggerToDasBlog.Console/Program.cs b/src/app/BloggerToDasBlog.Console/Program.cs
new file mode 100644
index 0000000..21dcc68
--- /dev/null
+++ b/src/app/BloggerToDasBlog.Console/Program.cs
@@ -0,0 +1,19 @@
+using System;
+using System.Collections.Generic;
+using System.IO;
+
+namespace BloggerToDasBlog.Console {
+ internal class Program {
+ private static void Main( ) {
+ IList< IBloggerEntry > bloggerEntries =
+ BloggerReader.Read( new Uri( Path.Combine( Environment.CurrentDirectory, "mokhan.blogspot.com.xml" ) ) );
+
+ foreach ( IBloggerEntry bloggerEntry in bloggerEntries ) {
+ new DasBlogWriter( ).Write( bloggerEntry );
+ }
+ System.Console.WriteLine( bloggerEntries );
+ System.Console.WriteLine( bloggerEntries.Count + " Entries have been created!" );
+ System.Console.ReadLine( );
+ }
+ }
+} \ No newline at end of file