public AccountProfileService(ILoggedUserProvider loggedUserProvider, IUnitOfWork unitOfWork, RepositoryFactoryBase repositoryFactory) : base(loggedUserProvider, unitOfWork) { if (repositoryFactory == null) throw new ArgumentNullException("repositoryFactory"); _userMessageRepository = repositoryFactory.CreateRepository<UserMessage>(); _userRepository = repositoryFactory.CreateRepository<User>(); }
public ResourceService(ILoggedUserProvider loggedUserProvider, IUnitOfWork unitOfWork, RepositoryFactoryBase repositoryFactory) : base(loggedUserProvider, unitOfWork) { if (repositoryFactory == null) throw new ArgumentNullException("repositoryFactory"); _platformRepository = repositoryFactory.CreateRepository<Platform>(); _commentRepository = repositoryFactory.CreateRepository<Comment>(); _userRepository = repositoryFactory.CreateRepository<User>(); _userCommentRepository = repositoryFactory.CreateRepository<UserComment>(); }
public AccountService(ILoggedUserProvider loggedUserProvider, IUnitOfWork unitOfWork, RepositoryFactoryBase repositoryFactory) : base(loggedUserProvider, unitOfWork) { if (repositoryFactory == null) throw new ArgumentNullException("repositoryFactory"); _userRepository = repositoryFactory.CreateRepository<User>(); _roleRepository = repositoryFactory.CreateRepository<Role>(); _userExternalInfoRepository = repositoryFactory.CreateRepository<UserExternalInfo>(); _userActivateTokenRepository = repositoryFactory.CreateRepository<UserActivateToken>(); _userInfoRepository = repositoryFactory.CreateRepository<UserInfo>(); _userResetTokenRepository = repositoryFactory.CreateRepository<UserResetToken>(); _sexRepository = repositoryFactory.CreateRepository<Sex>(); }