public UserMessageQueryHandler( ITransactionScopeFactory transactionScopeFactory, IAuthenticatedUserProvider authenticatedUserProvider, IVkWallService vkClient ) { _transactionScopeFactory = transactionScopeFactory; _authenticatedUserProvider = authenticatedUserProvider; _vkClient = vkClient; }
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; }
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); }
public UserController(IRepository <User> repository, IAuthenticatedUserProvider provider) { this.repository = repository; this.provider = provider; }
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); }
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; }