Esempio n. 1
0
 public ContentContentTypesBL(IContentsRepository contentsRepository, IContentTypesRepository contentTypesRepository,
                              IContentContentTypesRepository contentContentTypesRepository)
 {
     _contentsRepository            = contentsRepository;
     _contentTypesRepository        = contentTypesRepository;
     _contentContentTypesRepository = contentContentTypesRepository;
 }
        public AchievementListener(IServiceLocator serviceLocator)
        {
            _contentTypesRepo = serviceLocator.Get<IContentTypesRepository>();
            _earnedAchievementsRepo = serviceLocator.Get<IEarnedAchievementsRepository>();
            _achievementsRepo = serviceLocator.Get<IAchievementsRepository>();

            this.serviceLocator = serviceLocator;
        }
Esempio n. 3
0
 public CommentsService(IServiceLocator serviceLocator)
 {
     _repository = serviceLocator.Get<ICommentsRepository>();
     _contentTypeRepo = serviceLocator.Get<IContentTypesRepository>();
 }
 public AchievementsService(IServiceLocator serviceLocator)
 {
     _achievementsRepository = serviceLocator.Get<IAchievementsRepository>();
     _earnedAchievementsRepository = serviceLocator.Get<IEarnedAchievementsRepository>();
     _contentTypeRepository = serviceLocator.Get<IContentTypesRepository>();
 }
Esempio n. 5
0
 public VotingService(IServiceLocator serviceLocator)
 {
     _votesRepository = serviceLocator.Get<IVotesRepository>();
     _contentTypeRepository = serviceLocator.Get<IContentTypesRepository>();
     _membersAuthService = serviceLocator.Get<IMemberAuthenticationService>();
 }
Esempio n. 6
0
 public VotingController(IServiceLocator serviceLocator)
 {
     _votingService = serviceLocator.Get<IVotingService>();
     _contentTypeRepository = serviceLocator.Get<IContentTypesRepository>();
 }