コード例 #1
0
        public PersonaRepository()
        {
            personaReader = new StreamReader(System.Web.Hosting.HostingEnvironment.MapPath("~/App_Data/FusionGuide.csv"));
            skillReader   = new StreamReader(System.Web.Hosting.HostingEnvironment.MapPath("~/App_Data/SkillList.csv"));

            fusionUtilities      = new FusionUtilities();
            inheritanceUtilities = new InheritanceUtilities();
            skillModel           = new SkillModel(skillReader);
            personaModel         = new PersonaModel(personaReader, skillModel, inheritanceUtilities);
            fusionModel          = new FusionModel(personaModel, fusionUtilities);
        }
コード例 #2
0
 public PersonaModel(StreamReader reader, SkillModel skillModel, InheritanceUtilities inheritanceUtilities)
 {
     this.skillModel           = skillModel;
     this.inheritanceUtilities = inheritanceUtilities;
     personaList = BuildPersonaList(reader);
 }