public void Initialize() { fusionArcanaModel = new FusionArcanaModel(); StreamReader fusionReader = new StreamReader("App_Data\\FusionGuide.csv"); StreamReader skillsReader = new StreamReader("App_Data\\SkillList.csv"); StreamReader compendiumReader = new StreamReader("App_Data\\Compendium.csv"); skillModel = new SkillModel(skillsReader); inheritanceModel = new InheritanceModel(); compendiumModel = new CompendiumModel(compendiumReader); personaModel = new PersonaModel(fusionReader, skillModel, inheritanceModel, compendiumModel); model = new FusionModel(fusionArcanaModel, personaModel); }
public PersonaRepository() { fusionArcanaModel = new FusionArcanaModel(); StreamReader fusionReader = new StreamReader(HttpContext.Current.Server.MapPath("~/App_Data/FusionGuide.csv")); StreamReader skillsReader = new StreamReader(HttpContext.Current.Server.MapPath("~/App_Data/SkillList.csv")); StreamReader compendiumReader = new StreamReader(HttpContext.Current.Server.MapPath("~/App_Data/Compendium.csv")); skillModel = new SkillModel(skillsReader); inheritanceModel = new InheritanceModel(); compendiumModel = new CompendiumModel(compendiumReader); personaModel = new PersonaModel(fusionReader, skillModel, inheritanceModel, compendiumModel); fusionModel = new FusionModel(fusionArcanaModel, personaModel); }