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()); }
public ProfileController() { _profileRepo = EntityProfileRepository.Instance; _locationRepo = EntityLocationRepository.Instance; _feedRepo = EntityActivityRepository.Instance; _favRepo = EntityFavoriteRepository.Instance; }
public HomeControllerTest() { profileRepository = new EFProfileRepository(); apartmentRepository = new EFApartmentsRepository(); applicationManager = new ApplicationManager(new UserStore<ApplicationUser>(new ApplicationDbContext())); }
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; }
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; }
public UploadAvatarPresenter() { _userSession =new UserSession(); _profileRepository = new ProfileRepository(); _redirector = new Redirector(); _alertService = new AlertService(); }
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; }
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); }
public ProfileTasks( IProfileRepository profileRepository, ITagRepository tagRepository, ICategoryRepository categoryRepository) { this.profileRepository = profileRepository; this.tagRepository = tagRepository; this.categoryRepository = categoryRepository; }
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; }
/// <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; }
public UploadAvatarPresenter() { _userSession =new UserSession(); _profileRepository = new ProfileRepository(); _redirector = new Redirector(); _alertService = new AlertService(); _webcontext = new WebContext(); _for = new FolderRepository(); }
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; }
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; }
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(); }
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; }
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; }
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; }
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; }
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(); }
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(); }
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(); }
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; }
/// <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; }
public ProfilesController(IProfileRepository profileRepository, IUserRepository userRepository) { this.profileRepository = profileRepository; this.userRepository = userRepository; }
public ProfileService(IProfileRepository profileRepository) { _profileRepository = profileRepository; }
public ProfileCollection(IProfileRepository profileRepository) { _profileRepository = profileRepository; }
public RentController(IApartmentRepository apartmentRepository, IProfileRepository profileRepository, IProfileService profileService) { _apartmentRepository = apartmentRepository; _profileRepository = profileRepository; _profileService = profileService; }
public ProfileService(IProfileRepository repository) : base(repository) { }
public ChatMessageService(QueueClient chatQueueClient, DocumentClient databaseClient, IProfileRepository profileRepository, string databaseName) { _queueClient = chatQueueClient; _databaseClient = databaseClient; _profileRepository = profileRepository; _databaseId = databaseName; }
public ProfileController(IProfileRepository Profiles, ILogManager logger) { this.Profiles = Profiles; this.logger = logger; }