public void Initialize()
 {
     StreamReader reader = 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);
     model = new PersonaModel(reader, skillModel, inheritanceModel, compendiumModel);
 }
 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);
 }
 public MockPersonaRepository()
 {
     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);
     fusionModel = new FusionModel(fusionArcanaModel, personaModel);
 }
Esempio n. 4
0
 public FusionModel(IFusionArcanaModel fusionArcanaModel, IPersonaModel personaModel)
 {
     this.fusionArcanaModel = fusionArcanaModel;
     this.personaModel = personaModel;            
 }