public LoanController(ILoanService loanService, IGameService gameService, IFriendService friendService, IDunService dunService) { _loanService = loanService; _gameService = gameService; _friendService = friendService; _dunService = dunService; }
public ProfileController(ILogger <ProfileController> logger, IMapper mapper, IProfileService profileService, IFriendService friendService) { _logger = logger; _mapper = mapper; _profileService = profileService; _friendService = friendService; }
public FriendController(IPopupService popupService, IFriendService friendService, ICitizenRepository citizenRepository, IFriendRepository friendRepository) : base(popupService) { this.friendService = friendService; this.citizenRepository = citizenRepository; this.friendRepository = friendRepository; }
public SearchClosestFriends( IFriendService friendService, ISearchClosestFriendsService searchClosestFriendsService) { FriendService = friendService ?? throw new ArgumentNullException(nameof(friendService)); SearchClosestFriendsService = searchClosestFriendsService ?? throw new ArgumentNullException(nameof(searchClosestFriendsService)); }
public ConfirmFriendshipRequestPresenter() { _webContext = ObjectFactory.GetInstance<IWebContext>(); _configuration = ObjectFactory.GetInstance<IConfiguration>(); _redirector = ObjectFactory.GetInstance<IRedirector>(); _friendService = ObjectFactory.GetInstance<IFriendService>(); }
public UserProfileController(IUserService userService, ICategoryService categoryService, IFriendService friendService, IUserImageService userImageService) { this.userService = userService; this.categoryService = categoryService; this.friendService = friendService; this.userImageService = userImageService; }
public ProfileDisplayPresenter() { _redirector = new SPKTCore.Core.Impl.Redirector(); _friendRepository = new SPKTCore.Core.DataAccess.Impl.FriendRepository(); _userSession = new SPKTCore.Core.Impl.UserSession(); _friendservice = new SPKTCore.Core.Impl.FriendService(); }
public FriendControllerTests() { _friendService = new FriendServiceStub(); _borrowService = new BorrowServiceStub(); _reviewService = new ReviewServiceStub(); _controller = new FriendController(_friendService, _reviewService, _borrowService); }
public FriendshipRequestController(IFriendService friendService, IFriendshipRequestService friendshipRequestService, IUserService userService) { _friendService = friendService; _friendshipRequestService = friendshipRequestService; _userService = userService; }
public GetUserFriendsQueryHandler( IValidator validator, IFriendService friendService) { _validator = validator; _friendService = friendService; }
public ProfileInfoViewModel( IContentViewModelFactory contentViewModelFactory, IProfileService profileService, IFriendService friendService, IPostService postService, IStateService stateService, IMediaFactory mediaFactory) { _postService = postService; _friendService = friendService; _profileService = profileService; _contentViewModelFactory = contentViewModelFactory; _stateService = stateService; _mediaFactory = mediaFactory; ActionBarViewModel = ViewModelLocator.Resolve <ModeActionBarViewModel>(); ActionBarViewModel.InitializeAsync(this); ((ModeActionBarViewModel)ActionBarViewModel).IsModesAvailable = false; RefreshCommand = new Command(async() => { IsRefreshing = true; ResolveProfile(Profile); await Task.Delay(500); IsRefreshing = false; }); }
public FriendController(IUserService userService, IFriendService friendService, IUserProfileService profileService) { _userService = userService; _friendService = friendService; _profileService = profileService; }
public ServiceTest() { var opb = new DbContextOptionsBuilder(); opb.UseInMemoryDatabase("ClosestFriendLocation"); _closestFriendLocationContext = new ClosestFriendLocationContext(opb.Options); _friendRepository = new FriendRepository(_closestFriendLocationContext); _locationService = new FriendService(_friendRepository); var config = new MapperConfiguration(cfg => { cfg.CreateMap <AddressModel, Address>(); cfg.CreateMap <FriendModel, Friend>(); cfg.CreateMap <LocationModel, Location>(); cfg.CreateMap <Address, AddressModel>(); cfg.CreateMap <Friend, FriendModel>(); cfg.CreateMap <Location, LocationModel>(); }); _mapper = config.CreateMapper(); }
public MapViewModel(IFriendService friendService) { this.friendService = friendService; this.friends = new ObservableCollection<MapFriendViewModel>(); this.me = new MeViewModel(); MessengerInstance.Register<GetMapPinsMessage>(this, async message => await GetFriendsAsync()); }
public TrashController() { blogService = new BlogService(); postService = new BlogPostService(); categoryService = new BlogCategoryService(); friendService = new FriendService(); }
public ProfileImageService(ChatContext chatContext, IUserService userService, IHostingEnvironment hostingEnvironment, IFriendService friendService) { _chatContext = chatContext; _userService = userService; _hostingEnvironment = hostingEnvironment; _friendService = friendService; }
public PublicationService( IEFRepository <Publication> publicationRepository, IFriendService friendService, IUserService userService, IUnitOfWork unitOfWork, IPublicationFactory publicationFactory, IDateTimeService dateTimeService, IPublicationImageFactory publicationImageFactory, ICommentService commentService) { Guard.WhenArgument(publicationRepository, "PublicationRepository").IsNull().Throw(); Guard.WhenArgument(friendService, "FriendService").IsNull().Throw(); Guard.WhenArgument(userService, "UserService").IsNull().Throw(); Guard.WhenArgument(unitOfWork, "UnitOfWork").IsNull().Throw(); Guard.WhenArgument(publicationFactory, "PublicationFactory").IsNull().Throw(); Guard.WhenArgument(dateTimeService, "DateTimeService").IsNull().Throw(); Guard.WhenArgument(publicationImageFactory, "PublicationImageFactory").IsNull().Throw(); Guard.WhenArgument(commentService, "CommentService").IsNull().Throw(); this.publicationRepository = publicationRepository; this.friendService = friendService; this.userService = userService; this.unitOfWork = unitOfWork; this.publicationFactory = publicationFactory; this.dateTimeService = dateTimeService; this.publicationImageFactory = publicationImageFactory; this.commentService = commentService; }
public ImageController(IMapper mapper, IImageService service, IFriendService friendService, IAuthService authService) { _mapper = mapper; _service = service; _friendService = friendService; _authService = authService; }
public HAVHomeService(IValidationDictionary aValidationDictionary, IHAVIssueService anIssueService, IFriendService<User, Friend> aFriendService, IHAVHomeRepository aRepository) { theValidationDictionary = aValidationDictionary; theIssueService = anIssueService; theFriendService = aFriendService; theHomeRepository = aRepository; }
public AddFriendCommandHandler( IValidator validator, IFriendService friendService) { _validator = validator; _friendService = friendService; }
public ReservationController(IRestaurantService restserv,IReservationService irs, IFriendService ifs,IUserService ius) { this.restaurantService = restserv; this.reservationService = irs; this.friendService = ifs; this.userService = ius; }
public AcceptFriendRequestCommand(FriendListViewModel friendListViewModel, Action updateFriendAction, IFriendService friendService, ILogger logger) { _friendListViewModel = friendListViewModel; _updateFriendAction = updateFriendAction; _friendService = friendService; _logger = logger; }
public FriendsController(IFriendService friendService, IUserService userService, IGroupService groupService) { _friendService = friendService; _userService = userService; _groupService = groupService; _currentUserId = _userService.GetUserByLogin(Thread.CurrentPrincipal.Identity.Name).Id; }
public NotificationController() { notificationService = new NotificationService(); friendService = new FriendService(); this.LayoutControllerType = typeof(MsgController); }
public DeleteFriendCommand(IFriendService friendService, IHubManager hubManager, IHttpContextReader httpContextReader) { this.friendService = friendService; this.hubManager = hubManager; this.httpContextReader = httpContextReader; }
public ProfileController(UserManager <ApplicationUser> userManager, IUserService userService, IFriendService friendService, IImagesService imageService) { this.userService = userService; this.friendService = friendService; this.imageService = imageService; this.userManager = userManager; }
public CharacterInfoViewModelBase( IProfileService profileService, IStateService stateService, ITeamService teamService, IFriendService friendService, ITeamMemberService teamMemberService) { _profileService = profileService; _stateService = stateService; _teamService = teamService; _friendService = friendService; _teamMemberService = teamMemberService; RefreshCommand = new Command(async() => { IsRefreshing = true; await ResolveCharacterProfileAsync(); await ResolveTargetTeamAsync(); await ResolveIsFriendltAsync(TargetMember.Id); await ResolveContactInfosAsync(); await Task.Delay(AppConsts.DELAY_STUB); IsRefreshing = false; }); }
public RemoveFriendCommand(FriendListViewModel friendListViewModel, Action updateFriendAction, IFriendService friendService, ILogger logger) { _friendListViewModel = friendListViewModel; _updateFriendAction = updateFriendAction; _friendService = friendService; _logger = logger; }
public ChatHub(IChatService chatService, IUserService userService, IFriendService friendService, IGroupChatService groupChatService) { _chatService = chatService; _userService = userService; _friendService = friendService; _groupChatService = groupChatService; }
public OverviewPage() { InitializeComponent(); SetNewsPictureSource(_currentNews.ImageSource); DataContext = this; _friendService = FriendService.GetInstance(); _friendService.FriendListUpdated += SetFriendListIcon; }
public FriendController(IFriendService friendService, IUserService userService, IUnitOfWork unitOfWork, INotificationService notificationService) { _friendService = friendService; _userService = userService; _unitOfWork = unitOfWork; _notificationService = notificationService; }
public FriendController(IMapper mapper, IFriendRepository friendRepository, IFriendService locationService) { _mapper = mapper; _friendRepository = friendRepository; _locationService = locationService; }
public FriendsController(IFriendService friendService, IMediaService pictureService, IUserService customerService, IFollowService customerFollowService, IUserService userService) { _friendService = friendService; _pictureService = pictureService; _customerService = customerService; _customerFollowService = customerFollowService; _userService = userService; }
public FriendsVM(IFriendService friendService) { _friendSerice = friendService; _navigationService = App.NavigationService; Friends = new ObservableCollection <User>(); Debug.WriteLine(App.User.Username); Task.Run(() => Refresh()); }
public FriendRequestHub(IChatService chatService, IUserService userService, IHttpContextAccessor httpContextAccessor, IFriendService friendService, IFriendRequestService friendRequestService) { _userService = userService; _httpContextAccessor = httpContextAccessor; _friendService = friendService; _friendRequestService = friendRequestService; }
public FriendsViewModel(IFriendService friendService) { this.friendService = friendService; this.friends = new ObservableCollection<FriendView>(); this.possibleFriends = new ObservableCollection<ContactView>(); Messenger.Default.Register<GetFriendsMessage>(this, async message => await StartActionsAsync(message)); }
public MyListController() { blogService = new BlogService(); postService = new BlogPostService(); categoryService = new BlogCategoryService(); feedService = new FeedService(); friendService = new FriendService(); }
public AccountService() { _userSession = ObjectFactory.GetInstance<IUserSession>(); _email = ObjectFactory.GetInstance<IEmail>(); _redirector = ObjectFactory.GetInstance<IRedirector>(); _profileService = ObjectFactory.GetInstance<IProfileService>(); _friendService = ObjectFactory.GetInstance<IFriendService>(); _webContext = ObjectFactory.GetInstance<IWebContext>(); }
public RestaurantController(IRestaurantService restaurantService, ITypeOfRestauranService type, IRestaurantTableService table, IFoodService food, IRoleService roles, IUserService userserv, IFriendService ifr) { this.typeOfRestaurantService = type; this.restaurantService = restaurantService; this.restaurantTableService = table; this.foodService = food; this.roleService = roles; this.userService = userserv; this.friendService = ifr; }
public RegisterPresenter() { _accountService = new AccountService(); _webContext = new WebContext(); _email = new Email(); _redirector = new Redirector(); _parameterIntService = new ParameterIntService(); _friendInvitationRepository = new SPKTCore.Core.DataAccess.Impl.FriendInvitationRepository(); _friendService = new SPKTCore.Core.Impl.FriendService(); _accountRepository = new SPKTCore.Core.DataAccess.Impl.AccountRepository(); friendInvitation = new FriendInvitation(); }
public AccountService() { _accountRepository = new SPKTCore.Core.DataAccess.Impl.AccountRepository(); _permissionRepository = new SPKTCore.Core.DataAccess.Impl.PermissionRepository(); _userSession = new UserSession(); _redirector = new Redirector(); _email = new Email(); _profileService = new ProfileService(); _webContext=new SPKTCore.Core.Impl.WebContext(); _friendService = new SPKTCore.Core.Impl.FriendService(); //friendInvitation = new FriendInvitation(); }
public UserProfilePresenter() { _alertService = new AlertService(); _profileService = new ProfileService(); _userSession = new UserSession(); _webContext = new WebContext(); _accountService = new AccountService(); _redirector = new Redirector(); _privacyService = new PrivacyService(); _friendService = new FriendService(); _StatusUpdateService = new StatusUpdateService(); }
public HAVProfileService(IValidationDictionary aValidationDictionary, IUserRetrievalService<User> aUserRetrievalService, IFriendService<User, Friend> aFriendService, IPhotoAlbumService<User, PhotoAlbum, Photo, Friend> aPhotoAlbumService, IHAVProfileRepository aRepository, IBoardRepository<User, Board, BoardReply> aBoardRepository, IProfileQuestionService aProfileQuestionService) { theValidationDictionary = aValidationDictionary; theUserRetrievalService = aUserRetrievalService; theFriendService = aFriendService; theRepository = aRepository; theBoardRepository = aBoardRepository; thePhotoAlbumService = aPhotoAlbumService; theProfileQuestionService = aProfileQuestionService; }
public void Init(IRegister view, bool IsPostBack) { _view = view; _email = ObjectFactory.GetInstance<IEmail>(); _webContext = ObjectFactory.GetInstance<IWebContext>(); _accountService = ObjectFactory.GetInstance<IAccountService>(); _friendService = ObjectFactory.GetInstance<IFriendService>(); if (!IsPostBack) _view.LoadTerms(Term.GetCurrentTerm()); if (!string.IsNullOrEmpty(_webContext.FriendshipRequest)) { friendInvitation = FriendInvitation.GetFriendInvitationByGUID(new Guid(_webContext.FriendshipRequest)); _view.LoadEmailAddressFromFriendInvitation(friendInvitation.Email); } }
public CustomerProfileApiController(CustomerProfileService customerProfileService, CustomerProfileViewService customerProfileViewService, ICustomerService customerService, IMobSocialService mobSocialService, ICustomerFavoriteSongService customerFavoriteSongService, IMusicService musicService, IWorkContext workContext, IFriendService friendService, IPictureService pictureService, mobSocialSettings mobSocialSettings, MediaSettings mediaSettings, IGenericAttributeService genericAttributeService, ICustomerFollowService customerFollowService) { _customerProfileService = customerProfileService; _customerProfileViewService = customerProfileViewService; _customerService = customerService; _customerFavoriteSongService = customerFavoriteSongService; _mobSocialService = mobSocialService; _musicService = musicService; _workContext = workContext; _friendService = friendService; _pictureService = pictureService; _mobSocialSettings = mobSocialSettings; _mediaSettings = mediaSettings; _genericAttributeService = genericAttributeService; _customerFollowService = customerFollowService; }
public ArtistPageController(IMediaService pictureService, IUserService userService, UserSettings customerSettings, MediaSettings mediaSettings, IArtistPageService artistPageService, IArtistPageApiService artistPageApiService, IArtistPageManagerService artistPageManagerService, ISongService songService, IArtistPagePaymentService artistPagePaymentService, IMusicService musicService, IFriendService friendService) { _pictureService = pictureService; _userService = userService; _customerSettings = customerSettings; _mediaSettings = mediaSettings; _artistPageService = artistPageService; _artistPageApiService = artistPageApiService; _artistPageManagerService = artistPageManagerService; _songService = songService; _artistPagePaymentService = artistPagePaymentService; _musicService = musicService; _friendService = friendService; }
///Constructors needed for testability and DI public AcceptedFriendsFeedSurfaceController(UmbracoContext umbracoContext, IFriendService theService) : base(umbracoContext) { _friendHelper = theService; }
public PrivacyService() { _friendService = new FriendService(); _privacyRepository = new PrivacyRepository(); _profileRepository = new ProfileRepository(); }
public BlogController() { postService = new BlogPostService(); friendService = new FriendService(); }
//Constructors needed for testability and DI public FriendRequestSurfaceController(UmbracoContext umbracoContext, IFriendService _friendService) : base(umbracoContext) { this._friendService = _friendService; }
public UserController(IUserService userS, IFriendService friendS, IReservationService irs) { this.userService = userS; this.friendService = friendS; this.reservationService = irs; }
/// <summary> /// Provides APIs to handle requests related to friends. /// </summary> /// <param name="service"></param> public FriendController(IFriendService service) { _service = service; }
public PrivacyService() { _friendService = ObjectFactory.GetInstance<IFriendService>(); }
public FriendsViewModel(IFriendService friendService) { _friendService = friendService; }
public FriendsController(IAuthProvider authProvider, IFriendService friendService) { _friendService = friendService; _authProvider = authProvider; }
public IssuesController(IIssueRepository issueRepository, IFriendService friendService) { this.issueRepository = issueRepository; this.friendService = friendService; }
public FriendController(IUserService iUserService, IFriendService iFriendService) : base(iUserService) { _friendService = iFriendService; }
public GroupMemberController() { theValidationDictionary = new ModelStateWrapper(this.ModelState); theGroupService = new GroupService(theValidationDictionary); theFriendService = new FriendService<User, Friend>(new EntityHAVFriendRepository()); }