public IndividualController()
 {
     var cache = Util.CreateCacheProvider();
     var unitOfWork = Util.CreateUnitOfWork(cache);
     var serviceFactory = new FamilyTreeServiceFactory(unitOfWork, cache);
     _factService = serviceFactory.CreateFactService();
     _familyService = serviceFactory.CreateFamilyService();
     _individualService = serviceFactory.CreateIndividualService();
     _treeService = serviceFactory.CreateTreeService();
 }
        public FamilyTreeServiceFactory(IUnitOfWork unitOfWork, ICacheProvider cache)
        {
            Requires.NotNull(unitOfWork);
            Requires.NotNull(cache);

            _citationService = new CitationService(unitOfWork);
            _familyService = new FamilyService(unitOfWork);
            _individualService = new IndividualService(unitOfWork);
            _factService = new FactService(unitOfWork);
            _multimediaService = new MultimediaLinkService(unitOfWork);
            _noteService = new NoteService(unitOfWork);
            _repositoryService = new RepositoryService(unitOfWork);
            _sourceService = new SourceService(unitOfWork);
            _treeService = new TreeService(unitOfWork);
        }
 public FactsViewModel(IFactService factService)
 {
     _factService = factService;
 }
Example #4
0
 public FactsController(IFactService factService)
 {
     this.factService = factService;
     random           = new Random();
 }
Example #5
0
        protected FactChartViewModelBase(IFactService <TFact> factService)
        {
            FactService = factService;

            Specifications = new Dictionary <Type, ISpecification <TFact> >();
        }
Example #6
0
 public FirstViewModel(Facts.Domain.Service.IFactService factService)
 {
     _factService = factService;
     NextFactCommand = new MvxCommand(NextFactEvent);
     NextFactEvent();
 }