00001 using System; 00002 using System.Collections.Generic; 00003 using System.Linq; 00004 using System.Text; 00005 using Foodolini.BusinessLogic; 00006 using System.IO; 00007 00008 namespace Foodolini.ConsoleApp 00009 { 00010 class Program 00011 { 00012 static void Main(string[] args) 00013 { 00014 00015 /*RecipeMLImporter importer = new RecipeMLImporter(); 00016 00017 foreach (string file in Directory.GetFiles(@"C:\RecipeML").ToList()) { 00018 Recipe r = importer.ReadData(File.Open(file, FileMode.Open)); 00019 Console.ForegroundColor = ConsoleColor.Yellow; 00020 Console.WriteLine(r.ToString()); 00021 Console.ForegroundColor = ConsoleColor.Gray; 00022 r.Categories.ForEach(x => Console.WriteLine(x + " ")); 00023 r.Ingredients.ToList().ForEach(x => Console.WriteLine(" - " + x.Key.Name + " " + x.Value.Quantity + " " + x.Value.Unit + " ")); 00024 r.Directions.ForEach(x => Console.WriteLine(x)); 00025 } 00026 Console.Read();*/ 00027 00028 /* 00029 //Use this to add test cases to the unit test database, DO NOT fuckup the test database!!!!!!!!! 00030 Settings.Instance.OpenSqliteDatabase("../../../Foodolini.Test/foodolini.db3"); 00031 Person p = new Person("jopsen", "Jonas Finnemann Jensen", new DateTime(1988, 1, 9), Gender.Male, 1.79, 80, 0.9); 00032 p.Save(); 00033 Console.WriteLine("Done!!"); 00034 00035 Settings.Instance.Dispose(); 00036 */ 00037 } 00038 } 00039 }