Example #1
0
 public CodeCampService()
 {
     _personRepository = new PersonRepository();
     _sessionRepository = new SessionRepository();
     _metadataRepository = new MetadataRepository();
     _taskRepository = new TaskRepository();
     _tagRepository = new TagRepository();
 }
Example #2
0
 //public CodeCampService(StandardKernel kernel)
 //{
 //    _personRepository = kernel.Get<PersonRepository>();
 //    _sessionRepository = kernel.Get<SessionRepository>();
 //    _metadataRepository = kernel.Get<MetadataRepository>();
 //    _taskRepository = kernel.Get<TaskRepository>();
 //    _tagRepository = kernel.Get<TagRepository>();
 //}
 public CodeCampService(PersonRepository personRepo, SessionRepository sessionRepo, MetadataRepository metaRepo, TaskRepository taskRepo, TagRepository tagRepo)
 {
     _personRepository = personRepo;
     _sessionRepository = sessionRepo;
     _metadataRepository = metaRepo;
     _taskRepository = taskRepo;
     _tagRepository = tagRepo;
 }