public MockModelerDbLoader(string filename)
        {
            var doc = XDocument.Load(filename);

             this.recipes = (from r in doc.Descendants("Recipe")
            select new RecipeBinding()
            {
               Id = new Guid(r.Attribute("Id").Value),
               Rating = Convert.ToByte(r.Attribute("Rating").Value),
               Tags = RecipeTags.Parse(r.Attribute("Tags").Value)
            }).ToArray();

             this.ingredients = (from u in doc.Descendants("Usage")
            select new IngredientBinding()
            {
               RecipeId = new Guid(u.Attribute("RecipeId").Value),
               IngredientId = new Guid(u.Attribute("IngredientId").Value),
               Quantity = Convert.ToSingle(u.Attribute("Quantity").Value),
               Unit = Unit.Parse<Units>(u.Attribute("Unit").Value)
            }).ToArray();

             this.ratings = (from r in doc.Descendants("Rating")
            select new RatingBinding()
            {
               UserId = new Guid(r.Attribute("UserId").Value),
               RecipeId = new Guid(r.Attribute("RecipeId").Value),
               Rating = Convert.ToByte(r.Attribute("Rating").Value)
            }).ToArray();
        }
        public MockModelerDBLoader(string filename)
        {
            var doc = XDocument.Load(filename);
              Thread.CurrentThread.CurrentCulture = System.Globalization.CultureInfo.InvariantCulture;

             _dsRecipes = (from r in doc.Descendants("Recipe")
            select new RecipeBinding()
            {
               Id = new Guid(r.Attribute("Id").Value),
               Rating = Convert.ToByte(r.Attribute("Rating").Value),
               Tags = RecipeTags.Parse(r.Attribute("Tags").Value)
            }).ToArray();

             _dsIngredients = (from u in doc.Descendants("Usage")
            select new IngredientBinding()
            {
               RecipeId = new Guid(u.Attribute("RecipeId").Value),
               IngredientId = new Guid(u.Attribute("IngredientId").Value),
               Qty = Convert.ToSingle(u.Attribute("Qty").Value),
               Unit = Unit.Parse<Units>(u.Attribute("Unit").Value)
            }).ToArray();
             _dsRatings = (from r in doc.Descendants("Rating")
            select new RatingBinding()
            {
               UserId = new Guid(r.Attribute("UserId").Value),
               RecipeId = new Guid(r.Attribute("RecipeId").Value),
               Rating = Convert.ToByte(r.Attribute("Rating").Value)
            }).ToArray();
        }