/// <summary>Creates an instance for the default language.</summary> /// <returns>A repository.</returns> public IItemRepository ForDefaultCulture() { var itemCollectionConverter = new ItemCollectionConverter(); var itemConverterFactory = new ItemConverterFactory(); var itemRarityConverter = new ItemRarityConverter(); var gameTypeCollectionConverter = new GameTypeCollectionConverter(new GameTypeConverter()); var itemFlagCollectionConverter = new ItemFlagCollectionConverter(new ItemFlagConverter()); var itemRestrictionConverter = new ItemRestrictionConverter(); var itemRestrictionCollectionConverter = new ItemRestrictionCollectionConverter(itemRestrictionConverter); var itemConverter = new ItemConverter(itemConverterFactory, itemRarityConverter, gameTypeCollectionConverter, itemFlagCollectionConverter, itemRestrictionCollectionConverter); return new ItemRepository(this.serviceClient, itemCollectionConverter, itemConverter); }
/// <summary>Creates an instance for the default language.</summary> /// <returns>A repository.</returns> public IItemRepository ForDefaultCulture() { var itemCollectionConverter = new ItemCollectionConverter(); var itemConverterFactory = new ItemConverterFactory(); var itemRarityConverter = new ItemRarityConverter(); var gameTypeCollectionConverter = new GameTypeCollectionConverter(new GameTypeConverter()); var itemFlagCollectionConverter = new ItemFlagCollectionConverter(new ItemFlagConverter()); var itemRestrictionConverter = new ItemRestrictionConverter(); var itemRestrictionCollectionConverter = new ItemRestrictionCollectionConverter(itemRestrictionConverter); var itemConverter = new ItemConverter(itemConverterFactory, itemRarityConverter, gameTypeCollectionConverter, itemFlagCollectionConverter, itemRestrictionCollectionConverter); return(new ItemRepository(this.serviceClient, itemCollectionConverter, itemConverter)); }