/// <summary>Creates an instance for the default language.</summary> /// <returns>A repository.</returns> public IRecipeRepository ForDefaultCulture() { var recipeCollectionConverter = new RecipeCollectionConverter(); var recipeConverterFactory = new RecipeConverterFactory(); var craftingDisciplineCollectionConverter = new CraftingDisciplineCollectionConverter(new CraftingDisciplineConverter()); var recipeFlagCollectionConverter = new RecipeFlagCollectionConverter(new RecipeFlagConverter()); var quantityCollectionConverter = new CollectionConverter<IngredientDTO, ItemQuantity>(new ItemQuantityConverter()); var recipeConverter = new RecipeConverter(recipeConverterFactory, craftingDisciplineCollectionConverter, recipeFlagCollectionConverter, quantityCollectionConverter); return new RecipeRepository(this.serviceClient, recipeCollectionConverter, recipeConverter); }
/// <summary>Creates an instance for the default language.</summary> /// <returns>A repository.</returns> public IRecipeRepository ForDefaultCulture() { var recipeCollectionConverter = new RecipeCollectionConverter(); var recipeConverterFactory = new RecipeConverterFactory(); var craftingDisciplineCollectionConverter = new CraftingDisciplineCollectionConverter(new CraftingDisciplineConverter()); var recipeFlagCollectionConverter = new RecipeFlagCollectionConverter(new RecipeFlagConverter()); var quantityCollectionConverter = new CollectionConverter <IngredientDTO, ItemQuantity>(new ItemQuantityConverter()); var recipeConverter = new RecipeConverter(recipeConverterFactory, craftingDisciplineCollectionConverter, recipeFlagCollectionConverter, quantityCollectionConverter); return(new RecipeRepository(this.serviceClient, recipeCollectionConverter, recipeConverter)); }