Esempio n. 1
0
 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;
 }
Esempio n. 3
0
 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>();
 }
Esempio n. 6
0
 public UserProfileController(IUserService userService, ICategoryService categoryService, IFriendService friendService, IUserImageService userImageService)
 {
     this.userService      = userService;
     this.categoryService  = categoryService;
     this.friendService    = friendService;
     this.userImageService = userImageService;
 }
Esempio n. 7
0
 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();
 }
Esempio n. 8
0
 public FriendControllerTests()
 {
     _friendService = new FriendServiceStub();
     _borrowService = new BorrowServiceStub();
     _reviewService = new ReviewServiceStub();
     _controller    = new FriendController(_friendService, _reviewService, _borrowService);
 }
Esempio n. 9
0
 public FriendshipRequestController(IFriendService friendService,
                                    IFriendshipRequestService friendshipRequestService, IUserService userService)
 {
     _friendService            = friendService;
     _friendshipRequestService = friendshipRequestService;
     _userService = userService;
 }
 public GetUserFriendsQueryHandler(
     IValidator validator,
     IFriendService friendService)
 {
     _validator     = validator;
     _friendService = friendService;
 }
Esempio n. 11
0
        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;
            });
        }
Esempio n. 12
0
 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 FriendController(IUserService userService, IFriendService friendService, 
     IUserProfileService profileService)
 {
     _userService = userService;
     _friendService = friendService;
     _profileService = profileService;
 }
Esempio n. 14
0
        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();
        }
Esempio n. 15
0
 public MapViewModel(IFriendService friendService)
 {
     this.friendService = friendService;
     this.friends = new ObservableCollection<MapFriendViewModel>();
     this.me = new MeViewModel();
     MessengerInstance.Register<GetMapPinsMessage>(this, async message => await GetFriendsAsync());
 }
Esempio n. 16
0
 public TrashController()
 {
     blogService     = new BlogService();
     postService     = new BlogPostService();
     categoryService = new BlogCategoryService();
     friendService   = new FriendService();
 }
Esempio n. 17
0
        public TrashController() {

            blogService = new BlogService();
            postService = new BlogPostService();
            categoryService = new BlogCategoryService();
            friendService = new FriendService();
        }
Esempio n. 18
0
 public ProfileImageService(ChatContext chatContext, IUserService userService, IHostingEnvironment hostingEnvironment, IFriendService friendService)
 {
     _chatContext        = chatContext;
     _userService        = userService;
     _hostingEnvironment = hostingEnvironment;
     _friendService      = friendService;
 }
Esempio n. 19
0
        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;
        }
Esempio n. 20
0
 public ImageController(IMapper mapper, IImageService service, IFriendService friendService, IAuthService authService)
 {
     _mapper        = mapper;
     _service       = service;
     _friendService = friendService;
     _authService   = authService;
 }
Esempio n. 21
0
 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;
 }
Esempio n. 23
0
 public ReservationController(IRestaurantService restserv,IReservationService irs, IFriendService ifs,IUserService ius)
 {
     this.restaurantService = restserv;
     this.reservationService = irs;
     this.friendService = ifs;
     this.userService = ius;
 }
Esempio n. 24
0
 public AcceptFriendRequestCommand(FriendListViewModel friendListViewModel, Action updateFriendAction, IFriendService friendService, ILogger logger)
 {
     _friendListViewModel = friendListViewModel;
     _updateFriendAction  = updateFriendAction;
     _friendService       = friendService;
     _logger = logger;
 }
Esempio n. 25
0
 public FriendsController(IFriendService friendService, IUserService userService, IGroupService groupService)
 {
     _friendService = friendService;
     _userService   = userService;
     _groupService  = groupService;
     _currentUserId = _userService.GetUserByLogin(Thread.CurrentPrincipal.Identity.Name).Id;
 }
Esempio n. 26
0
        public NotificationController()
        {
            notificationService = new NotificationService();
            friendService       = new FriendService();

            this.LayoutControllerType = typeof(MsgController);
        }
Esempio n. 27
0
 public DeleteFriendCommand(IFriendService friendService, IHubManager hubManager,
                            IHttpContextReader httpContextReader)
 {
     this.friendService     = friendService;
     this.hubManager        = hubManager;
     this.httpContextReader = httpContextReader;
 }
Esempio n. 28
0
 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;
 }
Esempio n. 31
0
 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;
 }
Esempio n. 33
0
 public FriendController(IFriendService friendService, IUserService userService, IUnitOfWork unitOfWork,
                         INotificationService notificationService)
 {
     _friendService       = friendService;
     _userService         = userService;
     _unitOfWork          = unitOfWork;
     _notificationService = notificationService;
 }
Esempio n. 34
0
 public FriendController(IMapper mapper,
                         IFriendRepository friendRepository,
                         IFriendService locationService)
 {
     _mapper           = mapper;
     _friendRepository = friendRepository;
     _locationService  = locationService;
 }
Esempio n. 35
0
 public FriendsController(IFriendService friendService, IMediaService pictureService, IUserService customerService, IFollowService customerFollowService, IUserService userService)
 {
     _friendService = friendService;
     _pictureService = pictureService;
     _customerService = customerService;
     _customerFollowService = customerFollowService;
     _userService = userService;
 }
Esempio n. 36
0
 public FriendsVM(IFriendService friendService)
 {
     _friendSerice      = friendService;
     _navigationService = App.NavigationService;
     Friends            = new ObservableCollection <User>();
     Debug.WriteLine(App.User.Username);
     Task.Run(() => Refresh());
 }
Esempio n. 37
0
 public FriendRequestHub(IChatService chatService, IUserService userService,
                         IHttpContextAccessor httpContextAccessor, IFriendService friendService, IFriendRequestService friendRequestService)
 {
     _userService          = userService;
     _httpContextAccessor  = httpContextAccessor;
     _friendService        = friendService;
     _friendRequestService = friendRequestService;
 }
Esempio n. 38
0
        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));
        }
Esempio n. 39
0
 public MyListController()
 {
     blogService     = new BlogService();
     postService     = new BlogPostService();
     categoryService = new BlogCategoryService();
     feedService     = new FeedService();
     friendService   = new FriendService();
 }
Esempio n. 40
0
 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>();
 }
Esempio n. 41
0
 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;
 }
Esempio n. 42
0
 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();
 }
Esempio n. 43
0
 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();
 }
Esempio n. 44
0
 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;
 }
Esempio n. 46
0
        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;
 }
Esempio n. 50
0
 public PrivacyService()
 {
     _friendService = new FriendService();
     _privacyRepository = new PrivacyRepository();
     _profileRepository = new ProfileRepository();
 }
Esempio n. 51
0
        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;
 }
Esempio n. 53
0
 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;
 }
Esempio n. 55
0
 public PrivacyService()
 {
     _friendService = ObjectFactory.GetInstance<IFriendService>();
 }
Esempio n. 56
0
		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;
 }
Esempio n. 59
0
 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());
 }