Exemplo n.º 1
0
 public JobController()
 {
     this.profileRepo = new ProfileRepository(new MVCEntities());
     this.jobRepo = new JobRepository(new MVCEntities());
     this.accountRepo = new AccountRepository(new MVCEntities());
     this.notiRepo = new NotificationRepository(new MVCEntities());
 }
Exemplo n.º 2
0
 public ProfileController()
 {
     _profileRepo = EntityProfileRepository.Instance;
     _locationRepo = EntityLocationRepository.Instance;
     _feedRepo = EntityActivityRepository.Instance;
     _favRepo = EntityFavoriteRepository.Instance;
 }
Exemplo n.º 3
0
 public HomeControllerTest()
 {
     profileRepository = new EFProfileRepository();
     apartmentRepository = new EFApartmentsRepository();            
     applicationManager = new ApplicationManager(new UserStore<ApplicationUser>(new ApplicationDbContext()));
     
 }
Exemplo n.º 4
0
 public void Init(ISearch view)
 {
     _view = view;
     _accountRepository = new SPKTCore.Core.DataAccess.Impl.AccountRepository();
     _profileRepository = new SPKTCore.Core.DataAccess.Impl.ProfileRepository();
     _redirector = new SPKTCore.Core.Impl.Redirector();
 }
        public ContactManager(IAddressRepository addressRepository, IAddressTypeRepository addressTypeRepository, IPhoneRepository phoneRepository,
                              IPhoneTypeRepository phoneTypeRepository,IProfileAddressRepository profileAddressRepository, IProfilePhoneRepository profilePhoneRepository,
                              IProfileRepository profileRepository)
        {
            if (addressRepository == null)
                throw new ArgumentNullException("addressRepository");

            if (addressTypeRepository == null)
                throw new ArgumentNullException("addressTypeRepository");

            if (phoneRepository == null)
                throw new ArgumentNullException("phoneRepository");

            if (phoneTypeRepository == null)
                throw new ArgumentNullException("phoneTypeRepository");

            if (profileAddressRepository == null)
                throw new ArgumentNullException("profileAddressRepository");

            if (profilePhoneRepository == null)
                throw new ArgumentNullException("profilePhoneRepository");

            if (profileRepository == null)
                throw new ArgumentNullException("profileRepository");

            _addressRepository = addressRepository;
            _addressTypeRepository = addressTypeRepository;
            _phoneRepository = phoneRepository;
            _phoneTypeRepository = phoneTypeRepository;
            _profileAddressRepository = profileAddressRepository;
            _profilePhoneRepository = profilePhoneRepository;
            _profileRepository = profileRepository;
        }
Exemplo n.º 6
0
 public HomeController()
 {
     _activityRepo = EntityActivityRepository.Instance;
     _profileRepo = EntityProfileRepository.Instance;
     _matchCache = SXMatchRepository.Instance;
     _quesRepo = EntityQuestionRepository.Instance;
 }
 public AccountRepository(IProfileRepository profileRepository, IProfileFactory profileFactory, IAccountPersister accountPersister, IEventAggregator eventAggregator)
 {
     _profileRepository = profileRepository;
     _profileFactory = profileFactory;
     _accountPersister = accountPersister;
     _eventAggregator = eventAggregator;
 }
 public SearchService(IProfileRepository rep, ISkillRepository srep, ISkillTypeRepository strep, ISkillAreaRepository sarep)
 {
     this._profiles = rep;
     this._skillsRep = srep;
     this._skillTypesRep = strep;
     this._skillAreaRep = sarep;
 }
 public NotificationService(IUserRepositoryDB userRepository, IProfileRepositoryDB profileRepository ) {
     _userRepository = userRepository;
     _profileRepository = profileRepository;
     _settings = KatushaConfigurationManager.Instance.GetSettings();
     _mailTemplatesFolder = _settings.MailViewFolder + @"Views\___MailTemplates\";
     _adminMailAddress = _settings.AdministratorMailAddress;
 }
Exemplo n.º 10
0
 public UploadAvatarPresenter()
 {
     _userSession =new UserSession();
     _profileRepository = new ProfileRepository();
     _redirector = new Redirector();
     _alertService = new AlertService();
 }
Exemplo n.º 11
0
 public MemoryRepositories(IRepository<DueDate> dueDates, IProfileRepository profile, IPredictionRepository predictions, ICookieTrackerRepository cookieTrackers, IResultsRepository results)
 {
     this.dueDates = dueDates;
     this.profile = profile;
     this.predictions = predictions;
     this.cookieTrackers = cookieTrackers;
     this.results = results;
 }
Exemplo n.º 12
0
 public ProfileService()
 {
     _profileRepository = new ProfileRepository();
     _profileAttributeRepository = new ProfileAttributeRepository();
     _levelOfExperienceRepository = new LevelOfExperienceRepository();
     _userSession = new UserSession();
     _profileAttributeService = new ProfileAttributeService();
 }
        /// <summary>
        /// Конструктор класса
        /// </summary>
        public ServiceBase()
        {
            var context = new DatabaseContext();

            roleRepository = new RoleRepository(context);
            userRepository = new UserRepository(context);
            accountRepository = new AccountRepository(context);
            profileRepository = new ProfileRepository(context);
        }
Exemplo n.º 14
0
 public ProfileTasks(
     IProfileRepository profileRepository, 
     ITagRepository tagRepository,
     ICategoryRepository categoryRepository)
 {
     this.profileRepository = profileRepository;
     this.tagRepository = tagRepository;
     this.categoryRepository = categoryRepository;
 }
Exemplo n.º 15
0
 public List<Profile> FindProfiles(Profile profile,IProfileRepository repo)
 {
     List<Profile> result;
     result = repo.Profiles
         .Where(m => m.New == false)
         .Where(m => m.ProfileId != profile.ProfileId)
         .ToList();
     return result;
 }
Exemplo n.º 16
0
        /// <summary>
        /// Initializes a new instance of the <see cref="ProfileService" /> class.
        /// </summary>
        /// <param name="profileProvider">The profile provider.</param>
        /// <param name="sessionStateService">The session state service.</param>
        /// <param name="profileRepository">The profile repository.</param>
        /// <param name="userRoleRepository">The user role repository.</param>
        public ProfileService(IProfileProvider profileProvider, ISessionStateService sessionStateService,
			IProfileRepository profileRepository, IUserRoleRepository userRoleRepository)
        {
            this.profileProvider = profileProvider;
            //this.logService = logService;
            this.sessionStateService = sessionStateService;
            this.profileRepository = profileRepository;
            this.userRoleRepository = userRoleRepository;
        }
Exemplo n.º 17
0
 public UploadAvatarPresenter()
 {
     _userSession =new UserSession();
     _profileRepository = new ProfileRepository();
     _redirector = new Redirector();
     _alertService = new AlertService();
     _webcontext = new WebContext();
     _for = new FolderRepository();
 }
Exemplo n.º 18
0
 public AdminService(IUnitOfWork uow, IUserRepository userRepository, IRoleRepository roleRepository, ILotRepository lotRepository, ICathegoryRepository cathegoryRepository, IProfileRepository profileRepository, ICountryRepository countryRepository)
 {
     this.uow = uow;
     this.userRepository = userRepository;
     this.roleRepository = roleRepository;
     this.lotRepository = lotRepository;
     this.cathegoryRepository = cathegoryRepository;
     this.profileRepository = profileRepository;
     this.countryRepository = countryRepository;
 }
Exemplo n.º 19
0
        public SqlRepositories(OrmLiteConnectionFactory dbFactory, IRepository<DueDate> dueDates, IProfileRepository profile, IPredictionRepository predictions, ICookieTrackerRepository cookieTrackers, IResultsRepository results)
        {
            this.dbFactory = dbFactory;

            this.dueDates = dueDates;
            this.profile = profile;
            this.predictions = predictions;
            this.cookieTrackers = cookieTrackers;
            this.results = results;
        }
Exemplo n.º 20
0
        public ChooseConnectionDialog(ChooseConnectionPresenter presenter, IProfileRepository model)
        {
            InitializeComponent();

            this.DataContext = this;
            tbStatus.DataContext = model;
            this.presenter = presenter;
            this.model = model;
            btnConnect.Click += new RoutedEventHandler(btnConnect_Click);
            loadServers();
        }
Exemplo n.º 21
0
 public CabinetService(IUnitOfWork uow, ILotRepository lotRepository, IUserRepository userRepository, IProfileRepository profileRepository, ICountryRepository countryRepository, IImageRepository imageRepository, ICathegoryRepository cathegoryRepository)
 {
     this.uow = uow;
     this.lotRepository = lotRepository;
     this.userRepository = userRepository;
     this.profileRepository = profileRepository;
     this.profileRepository = profileRepository;
     this.countryRepository = countryRepository;
     this.imageRepository = imageRepository;
     this.cathegoryRepository = cathegoryRepository;
 }
Exemplo n.º 22
0
        public void SetUp()
        {
            AutoMapperConfiguration.Configure();
            Mapper.AssertConfigurationIsValid();

            this.userRepository = new FakeUserRepository();
            this.profileRepository = new FakeProfileRepository();
            this.roleRepository = new FakeRoleRepository();
            this.membershipRepository = new MembershipRepository();
            this.emailService = new FakeEmailService();
            this.logger = new FakeLogger();
        }
 public ProfileService(IProfileRepository profileRepository, IProfileActivityRepository profileActivityRepository, ICredentialService credentialService, IActivityTypeRepository activityTypeRepository, IGrunkerRepository grunkRepository, IPictureService pictureService, IPictureRepository pictureRepository, IReviewService reviewService, IProductService productService)
 {
     this.ProfileRepository = profileRepository;
     this.CredentialService = credentialService;
     this.ProfileActivityRepository = profileActivityRepository;
     this.ActivityTypeRepository = activityTypeRepository;
     this.GrunkRepository = grunkRepository;
     this.PictureService = pictureService;
     this.PictureRepository = pictureRepository;
     this.ReviewService = reviewService;
     this.ProductService = productService;
 }
Exemplo n.º 24
0
		public ForumService(IForumRepository forumRepository, ITopicRepository topicRepository, IPostRepository postRepository, ICategoryRepository categoryRepository, IProfileRepository profileRepository, ITextParsingService textParsingService, ISettingsManager settingsManager, ILastReadService lastReadService, IEventPublisher eventPublisher, IBroker broker)
		{
			_forumRepository = forumRepository;
			_topicRepository = topicRepository;
			_postRepository = postRepository;
			_categoryRepository = categoryRepository;
			_profileRepository = profileRepository;
			_settingsManager = settingsManager;
			_textParsingService = textParsingService;
			_lastReadService = lastReadService;
			_eventPublisher = eventPublisher;
			_broker = broker;
		}
Exemplo n.º 25
0
		public PostService(IPostRepository postRepository, IProfileRepository profileRepository, ISettingsManager settingsManager, ITopicService topicService, ITextParsingService textParsingService, IModerationLogService moderationLogService, IForumService forumService, IEventPublisher eventPublisher, IUserService userService, IFeedService feedService)
		{
			_postRepository = postRepository;
			_profileRepository = profileRepository;
			_settingsManager = settingsManager;
			_topicService = topicService;
			_textParsingService = textParsingService;
			_moderationLogService = moderationLogService;
			_forumService = forumService;
			_eventPublisher = eventPublisher;
			_userService = userService;
			_feedService = feedService;
		}
Exemplo n.º 26
0
        public void Show(string ipAddress, int port, int leaguesID, int roundsID, IProfileRepository profileRepository, IErrorMessagesPresenter errorPresenter, IConnectionRelayer connectionRelayer, IGameMatch gameMatch)
        {
            if (connectionDialog != null)
            {
                connectionDialog.Close();
            }

            connectionDialog = new ConnectionDialog(ipAddress, port, leaguesID, roundsID,
                    ProfileRepository.Instance, consolePane, this, null);
            connectionDialog.Owner = this;
            connectionDialog.Closing += new System.ComponentModel.CancelEventHandler(modalWindow_Closing);
            connectionDialog.Show();
        }
Exemplo n.º 27
0
 public ProfileService()
 {
     //_profileRepository = ObjectFactory.GetInstance<IProfileRepository>();
     //_profileAttributeRepository = ObjectFactory.GetInstance<IProfileAttributeRepository>();
     //_profileAttributeService = ObjectFactory.GetInstance<IProfileAttributeService>();
     //_levelOfExperienceTypeRepository = ObjectFactory.GetInstance<ILevelOfExperienceTypeRepository>();
     //_userSession = ObjectFactory.GetInstance<IUserSession>();
     _profileRepository = new ProfileRepository();
     _profileAttributeRepository = new ProfileAttributeRepository();
     _levelOfExperienceRepository = new LevelOfExperienceRepository();
     _userSession = new UserSession();
     _profileAttributeService = new ProfileAttributeService();
 }
Exemplo n.º 28
0
 public ManageProfilePresenter()
 {
     _levelOfExperienceRepository = new LevelOfExperienceRepository();
     _profileAttributeRepository = new ProfileAttributeRepository();
     _profileRepository = new ProfileRepository();
     _userSession = new UserSession();
     _profileService = new ProfileService();
     _profileAttributeService = new ProfileAttributeService();
     _redirector = new Redirector();
     _listProfileAttributeType = new List<ProfileAttributeType>();
     _listPrivacyFlags = new List<PrivacyFlag>();
     _privacyRepository = new PrivacyRepository();
     _listVisibilityLevel = new List<VisibilityLevel>();
     profile = new Profile();
 }
Exemplo n.º 29
0
		public UserService(IUserRepository userRepository, IRoleRepository roleRepository, IProfileRepository profileRepository, IFormsAuthenticationWrapper formsAuthWrapper, ISettingsManager settingsManager, IUserAvatarRepository userAvatarRepository, IUserImageRepository userImageRepository, ISecurityLogService securityLogService, ITextParsingService textParsingService, IBanRepository banRepository, IForgotPasswordMailer forgotPasswordMailer, IImageService imageService)
		{
			_userRepository = userRepository;
			_roleRepository = roleRepository;
			_profileRepository = profileRepository;
			_formsAuthWrapper = formsAuthWrapper;
			_settingsManager = settingsManager;
			_userAvatarRepository = userAvatarRepository;
			_userImageRepository = userImageRepository;
			_securityLogService = securityLogService;
			_textParsingService = textParsingService;
			_banRepository = banRepository;
			_forgotPasswordMailer = forgotPasswordMailer;
			_imageService = imageService;
		}
Exemplo n.º 30
0
 /// <summary>
 /// Initializes a new instance of the <see cref="MembershipService"/> class.
 /// </summary>
 /// <param name="logger">
 /// The logger.
 /// </param>
 /// <param name="emailService">
 /// The email Service.
 /// </param>
 /// <param name="userRepository">
 /// The user repository.
 /// </param>
 /// <param name="roleRepository">
 /// The role repository.
 /// </param>
 /// <param name="profileRepository">
 /// The profile Repository.
 /// </param>
 /// <param name="membershipRepository">
 /// The membership Repository.
 /// </param>
 public MembershipService(
     ILogger logger,
     IEmailService emailService,
     IUserRepository userRepository,
     IRoleRepository roleRepository,
     IProfileRepository profileRepository,
     IMembershipRepository membershipRepository)
     : base(logger)
 {
     this.emailService = emailService;
     this.userRepository = userRepository;
     this.roleRepository = roleRepository;
     this.profileRepository = profileRepository;
     this.membershipRepository = membershipRepository;
 }
Exemplo n.º 31
0
 public ProfilesController(IProfileRepository profileRepository, IUserRepository userRepository)
 {
     this.profileRepository = profileRepository;
     this.userRepository    = userRepository;
 }
Exemplo n.º 32
0
 public ProfileService(IProfileRepository profileRepository)
 {
     _profileRepository = profileRepository;
 }
Exemplo n.º 33
0
 public ProfileCollection(IProfileRepository profileRepository)
 {
     _profileRepository = profileRepository;
 }
Exemplo n.º 34
0
 public RentController(IApartmentRepository apartmentRepository, IProfileRepository profileRepository, IProfileService profileService)
 {
     _apartmentRepository = apartmentRepository;
     _profileRepository   = profileRepository;
     _profileService      = profileService;
 }
Exemplo n.º 35
0
 public ProfileService(IProfileRepository repository) : base(repository)
 {
 }
Exemplo n.º 36
0
 public ChatMessageService(QueueClient chatQueueClient, DocumentClient databaseClient, IProfileRepository profileRepository, string databaseName)
 {
     _queueClient       = chatQueueClient;
     _databaseClient    = databaseClient;
     _profileRepository = profileRepository;
     _databaseId        = databaseName;
 }
Exemplo n.º 37
0
 public ProfileController(IProfileRepository Profiles, ILogManager logger)
 {
     this.Profiles = Profiles;
     this.logger   = logger;
 }