public UserMessageQueryHandler(
     ITransactionScopeFactory transactionScopeFactory,
     IAuthenticatedUserProvider authenticatedUserProvider,
     IVkWallService vkClient
     )
 {
     _transactionScopeFactory   = transactionScopeFactory;
     _authenticatedUserProvider = authenticatedUserProvider;
     _vkClient = vkClient;
 }
Example #2
0
 public VkClientHttpHandler(
     IOptions <VkontakteOptions> vkontakteOptions,
     IUserTokenAccessor vkTokenAccessor,
     IDistributedLock distributedLock,
     IAuthenticatedUserProvider authenticatedUserProvider
     )
 {
     _vkontakteOptions          = vkontakteOptions;
     _vkTokenAccessor           = vkTokenAccessor;
     _distributedLock           = distributedLock;
     _authenticatedUserProvider = authenticatedUserProvider;
 }
 public CachedUserTokenAccessor(
     ICachingService cachingService,
     IdentityTokenService.IdentityTokenServiceClient identityClient,
     IAuthenticatedUserProvider authenticatedUserProvider,
     IUserTokenKeyProvider userTokenKeyProvider
     )
 {
     _cachingService            = cachingService;
     _identityClient            = identityClient;
     _authenticatedUserProvider = authenticatedUserProvider;
     _userTokenKeyProvider      = userTokenKeyProvider;
 }
Example #4
0
 public VkService(
     IMessageBroker messageBroker,
     IAuthenticatedUserProvider authenticatedUserProvider,
     IVkWallService wallService,
     IVkGroupService vkGroupService,
     ILogger <VkService> logger
     )
 {
     _messageBroker             = messageBroker;
     _authenticatedUserProvider = authenticatedUserProvider;
     _wallService    = wallService;
     _vkGroupService = vkGroupService;
     _logger         = logger;
 }
        public TripControllerTest()
        {
            userTrip = new Trip(loggedInUser.UserID);
            userTrip.current_weight = 10;
            userTrip.description = "My Trip";
            userTrip.destination = "Egypt";
            userTrip.total_capacity = 15;
            userTrip.weather = "Sunny";
            repository.Add(userTrip);

            notUserTrip = new Trip(Guid.NewGuid());
            notUserTrip.current_weight = 15;
            notUserTrip.description = "Trip 1";
            notUserTrip.destination = "Seattle";
            notUserTrip.total_capacity = 20;
            notUserTrip.weather = "Rainy";
            notUserRepository.Add(notUserTrip);

            provider = new MockAuthenticatedUserProvider(loggedInUser);
        }
        public TripControllerTest()
        {
            userTrip = new Trip(loggedInUser.UserID);
            userTrip.current_weight = 10;
            userTrip.description    = "My Trip";
            userTrip.destination    = "Egypt";
            userTrip.total_capacity = 15;
            userTrip.weather        = "Sunny";
            repository.Add(userTrip);

            notUserTrip = new Trip(Guid.NewGuid());
            notUserTrip.current_weight = 15;
            notUserTrip.description    = "Trip 1";
            notUserTrip.destination    = "Seattle";
            notUserTrip.total_capacity = 20;
            notUserTrip.weather        = "Rainy";
            notUserRepository.Add(notUserTrip);

            provider = new MockAuthenticatedUserProvider(loggedInUser);
        }
Example #7
0
 public UserController(IRepository <User> repository, IAuthenticatedUserProvider provider)
 {
     this.repository = repository;
     this.provider   = provider;
 }
Example #8
0
 public UserController()
 {
     this.repository = new Repository <User>(new DBUnitOfWork());
     this.provider   = new FormsAuthenticatedUserProvider(this);
 }
 public LockerController(IRepository<Locker> repository, IAuthenticatedUserProvider provider)
 {
     this.repository = repository;
     this.provider = provider;
 }
 public LockerController()
 {
     this.repository = new Repository<Locker>(new DBUnitOfWork());
     this.provider = new FormsAuthenticatedUserProvider(this);
 }
Example #11
0
        public VkRequestState(IAuthenticatedUserProvider authenticatedUserProvider, string url)
        {
            UserId = authenticatedUserProvider.GetUser().Id;

            ParseQuery(url);
        }
 public TripController(IRepository<Trip> repository, IAuthenticatedUserProvider provider)
 {
     this.repository = repository;
     this.provider = provider;
 }
 public ItemController(IRepository<Item> repository, IAuthenticatedUserProvider provider)
 {
     this.repository = repository;
     this.provider = provider;
 }