public AccountController(
     IUserServices userServices,
     ITokenServices tokenServices)
 {
     this.userServices = userServices;
     this.tokenServices = tokenServices;
 }
示例#2
0
 public AccountController(ITokenServices tokenServices, UserManager <ApplicationUserIdentity> userManager,
                          SignInManager <ApplicationUserIdentity> signInManager)
 {
     _tokenServices = tokenServices;
     _userManager   = userManager;
     _signInManager = signInManager;
 }
 public AuthenticateApiController(IContext context, IUserServices userServices, ITokenServices tokenServices, IEloquaService iEloquaService)
     : base(context)
 {
     _userServices  = userServices;
     _tokenServices = tokenServices;
     _eloquaService = iEloquaService;
 }
示例#4
0
 public PatientController(IUserServices userServices, ITokenServices tokenServices, IRoleService roleService, IDeceaseTypeService patientService)
 {
     _userServices   = userServices;
     _tokenServices  = tokenServices;
     _roleService    = roleService;
     _patientService = patientService;
 }
 public AuthenticationServices(IOptions <List <Client> > _clients, ITokenServices _tokenService, UserManager <Kullanici> _userManager, IUnitOfWork _unitOfWork, IGenericRepository <RefreshToken> _RefreshToken)
 {
     clients      = _clients.Value;
     tokenService = _tokenService;
     userManager  = _userManager;
     unitOfWork   = _unitOfWork;
     refreshToken = _RefreshToken;
 }
 public AccountController(UserManager <AppUser> userManager, SignInManager <AppUser> signInManager,
                          ITokenServices tokenServices, IMapper mapper)
 {
     _userManager   = userManager;
     _signInManager = signInManager;
     _tokenServices = tokenServices;
     _mapper        = mapper;
 }
示例#7
0
 public DepartmentTypeController(IUserServices userServices, ITokenServices tokenServices, IRoleService roleService,
                                 IDepartmentTypeServices departmentTypeService)
 {
     _userServices          = userServices;
     _tokenServices         = tokenServices;
     _roleService           = roleService;
     _departmentTypeService = departmentTypeService;
 }
 public UsersController(UserManager <User> userManager, SignInManager <User> signInManager, IUserServices userServices, ITokenServices tokenServices, IConfiguration config, MyContext context)
 {
     _userManager   = userManager;
     _signInManager = signInManager;
     _userServices  = userServices;
     _configuration = config;
     _context       = context;
     _tokenServices = tokenServices;
 }
示例#9
0
 public ServicePrincipalApiController(IServicePrincipalRepository servicePrincipalRepo,
                                      IResourceManagerRepository resourceManagerRepo,
                                      ITokenServices tokenServices,
                                      ILogger <ServicePrincipalApiController> logger)
     : base(servicePrincipalRepo, resourceManagerRepo)
 {
     this.tokenServices = tokenServices;
     this.logger        = logger;
 }
        public void ReInitializeTest()
        {
            _dbEntities      = new Mock <WebApiDbEntities>().Object;
            _tokenRepository = SetUpTokenRepository();
            var unitOfWork = new Mock <IUnitOfWork>();

            unitOfWork.SetupGet(s => s.TokenRepository).Returns(_tokenRepository);
            _unitOfWork    = unitOfWork.Object;
            _tokenServices = new TokenServices(_unitOfWork);
        }
 public void DisposeTest()
 {
     _tokenServices   = null;
     _unitOfWork      = null;
     _tokenRepository = null;
     if (_dbEntities != null)
     {
         _dbEntities.Dispose();
     }
 }
 public WeatherForecastController(
     ILogger <WeatherForecastController> logger,
     IBookRepository bookrepo,
     IPublisherRepository publrepo,
     IConfiguration configuration,
     IUserRepository userRepository,
     ITokenServices services)
 {
     _logger         = logger;
     _bookrepo       = bookrepo;
     _publrepo       = publrepo;
     Configuration   = configuration;
     _services       = services;
     _userRepository = userRepository;
 }
 public void DisposeAllObjects()
 {
     _tokenService      = null;
     _productService    = null;
     _unitOfWork        = null;
     _tokenRepository   = null;
     _productRepository = null;
     _tokens            = null;
     _products          = null;
     if (_response != null)
     {
         _response.Dispose();
     }
     if (_client != null)
     {
         _client.Dispose();
     }
 }
        public void Setup()
        {
            _products          = SetUpProducts();
            _tokens            = SetUpTokens();
            _dbEntities        = new Mock <WebApiDbEntities1>().Object;
            _tokenRepository   = SetUpTokenRepository();
            _productRepository = SetUpProductRepository();
            var unitOfWork = new Mock <IUnitOfWork>();

            unitOfWork.SetupGet(s => s.ProductRepository).Returns(_productRepository);
            unitOfWork.SetupGet(s => s.TokenRepository).Returns(_tokenRepository);
            _unitOfWork     = unitOfWork.Object;
            _productService = new ProductServices(_unitOfWork);
            _tokenService   = new TokenServices(_unitOfWork);
            _client         = new HttpClient {
                BaseAddress = new Uri(ServiceBaseURL)
            };
            var tokenEntity = _tokenService.GenerateToken(1);

            _token = tokenEntity.AuthToken;
            _client.DefaultRequestHeaders.Add("Token", _token);
        }
 public UsersController(IUserServices user,ITokenServices token, IBasketServices basket)
 {
     this.userServices = user;
     this.tokenServices = token;
     this.basketServices = basket;
 }
示例#16
0
 public AdminController(IUserServices userServices, ITokenServices tokenServices, IRoleService roleService)
 {
     _userServices  = userServices;
     _tokenServices = tokenServices;
     _roleService   = roleService;
 }
 /// <summary>
 /// Public constructor to initialize product service instance
 /// </summary>
 public AuthenticateController(/*ITokenServices tokenServices*/)
 {
     //_tokenServices = tokenServices;
     _tokenServices = new TokenServices();
 }
示例#18
0
 public AuthController(ITokenServices tokenServices)
 {
     _tokenServices = tokenServices;
 }
示例#19
0
 /// <summary>
 /// Public constructor to initialize product service instance
 /// </summary>
 public AuthenticateController()
 {
     _tokenServices = ServicesFactory.GetTokenServices();
     _userServices  = ServicesFactory.GetUserServices();
 }
示例#20
0
 public TokenController(ITokenServices tokenServices, IConfiguration configuration)
 {
     _tokenServices = tokenServices;
     Configuration  = configuration;
 }
示例#21
0
 public ForCompareServices(HttpClient httpClient, ILocalStorageService localStorageService, ITokenServices tokenServices)
 {
     this.httpClient          = httpClient;
     this.localStorageService = localStorageService;
     this.tokenServices       = tokenServices;
 }
示例#22
0
 public AccountController(DataContext context, ITokenServices token)
 {
     _Context       = context;
     _TokenServices = token;
 }
示例#23
0
 /// <summary>
 /// Public constructor to initialize product service instance
 /// </summary>
 public QuoteController()
 {
     _quoteServices = ServicesFactory.GetQuoteServices();
     _tokenServices = ServicesFactory.GetTokenServices();
 }
示例#24
0
 public UserProfileController(ITokenServices tokenServices)
 {
     this.tokenServices = tokenServices;
 }
示例#25
0
 public AccountsController(IOutletService outletService, ITokenServices tokenServices)
 {
     _outletService = outletService;
     _tokenServices = tokenServices;
 }
示例#26
0
 public AuthenticateController(ITokenServices iTokenServices)
 {
     _iTokenServices = iTokenServices;
 }
示例#27
0
 public AccountController(DataContext context, ITokenServices tokenService)
 {
     this.tokenService = tokenService;
     _context          = context;
 }
示例#28
0
 /// <summary>
 /// Public constructor to initialize product service instance
 /// </summary>
 public AuthenticateController(ITokenServices tokenServices)
 {
     _tokenServices = tokenServices;
 }
示例#29
0
 public TokenController(ITokenServices tokenServices)
 {
     _tokenServices = tokenServices;
 }
示例#30
0
 public LogOffController(ITokenServices tokenServices)
 {
     _tokenServices = tokenServices;
 }
 public AuthenticateController(ITokenServices tokenServices)
 {
     _tokenServices = tokenServices;
 }
 public AccountController(ITokenServices tokenService, IUser user, IApplicant applicant)
 {
     _applicant    = applicant;
     _user         = user;
     _tokenService = tokenService;
 }
示例#33
0
 public AuthenticateController()
 {
     this._tokenServices = new TokenServices();
 }
示例#34
0
 public AuthenticateController()
 {
     _tokenServices = new TokenServices();
     _userServices  = new UserServices();
 }
 /// <summary>
 /// Public constructor to initialize product service instance
 /// </summary>
 public AuthenticateController(ITokenServices tokenServices, IUserServices userServices)
 {
     _tokenServices = tokenServices;
     _userServices  = userServices;
 }
示例#36
0
 public AuthenticateController(ITokenServices token)
 {
 }