public LandingController(Routes routes, IAuthApi authApi, IUsersApi usersApi, IAppActionsApi appActionsApi)
 {
     _routes = routes;
     _authApi = authApi;
     _usersApi = usersApi;
     _appActionsApi = appActionsApi;
 }
Exemple #2
0
 public HomeController(IApplicationSettings applicationSettings, IPlatformTokenProvider platformTokenProvider, IUsersApi usersApi, IPlatformSettings platformSettings)
 {
     _applicationSettings   = applicationSettings;
     _platformTokenProvider = platformTokenProvider;
     _usersApi         = usersApi;
     _platformSettings = platformSettings;
 }
 public ProductScoreCalculator(IContextProvider contextProvider,
     IStateProvider stateProvider)
 {
     _usersApi = new UsersApi(contextProvider);
     _catalogsApi = new CatalogsApi(contextProvider);
     _userCatalogProvider = new UserCatalogProvider(contextProvider, stateProvider);
 }
 public UserContextProvider(
     IStateProvider stateProvider,
     IContextProvider contextProvider)
 {
     _usersApi = new UsersApi(contextProvider);
     _stateProvider = stateProvider;
 }
 public ApiFactory(IBasketApi basketApi, IOrderApi orderApi, IUsersApi usersApi, IProductApi productApi)
 {
     _basketApi  = basketApi;
     _orderApi   = orderApi;
     _usersApi   = usersApi;
     _productApi = productApi;
 }
 public HomeController()
 {
     _applicationSettings = new ApplicationSettings();
     _platformTokenProvider = new PlatformTokenProvider(new HttpContextProvider());
     _platformSettings = new PlatformSettings();
     _usersApi = new UsersApi(new HttpContextProvider());
 }
Exemple #7
0
        public UsersController(IHttpClientFactory httpClientFactory)
        {
            var client = httpClientFactory.CreateClient();

            client.BaseAddress = new Uri("http://localhost:5000");
            _usersApi          = RestService.For <IUsersApi>(client);
        }
 public LandingController()
 {
     _routes = new Routes();
     var contextProvider = new HttpContextProvider();
     _authApi = new AuthApi(contextProvider);
     _usersApi = new UsersApi(contextProvider);
     _appActionsApi = new AppActionsApi(contextProvider);
 }
 public TokenResolver(IPlatformTokenProvider platformTokenProvider, IGroupMemberRepository groupMemberRepository,
     IGroupMemberResolver groupMemberResolver, IUsersApi usersApi)
 {
     _usersApi = usersApi;
     _platformTokenProvider = platformTokenProvider;
     _groupMemberRepository = groupMemberRepository;
     _groupMemberResolver = groupMemberResolver;
 }
 public ProductController(IPlatformTokenProvider platformTokenProvider, IUsersApi usersApi, IShopGroupBuilder shopGroupBuilder,
       IShopGroupFromInputValidator shopGroupFromInputValidator)
 {
     _usersApi = usersApi;
     _platformTokenProvider = platformTokenProvider;
     _shopGroupFromInputValidator = shopGroupFromInputValidator;
     _shopGroupBuilder = shopGroupBuilder;
 }
 public PostLoginController()
 {
     _routes = new Routes();
     var contextProvider = new HttpContextProvider();
     _usersApi = new UsersApi(contextProvider);
     _createCatalogFlow = new CreateCatalogFlow(contextProvider, new CookieStateProvider());
     _applicationSettings = new ApplicationSettings();
     _appLinksApi = new AppLinksApi();
 }
 public GroupMemberResolver(IUsersApi usersApi, IShopGroupRepository shopGroupRepository, IGroupMemberRepository groupMemberRepository,
     IPlatformTokenProvider platformTokenProvider, IAuthApi authApi)
 {
     _usersApi = usersApi;
     _shopGroupRepository = shopGroupRepository;
     _groupMemberRepository = groupMemberRepository;
     _platformTokenProvider = platformTokenProvider;
     _authApi = authApi;
 }
Exemple #13
0
 public UserService(
     ILogger <UserService> logger,
     IVictorOpsConfiguration configuration,
     IUsersApi usersApi
     )
 {
     _logger        = logger ?? throw new ArgumentNullException(nameof(logger));
     _configuration = configuration ?? throw new ArgumentNullException(nameof(configuration));
     _usersApi      = usersApi ?? throw new ArgumentNullException(nameof(usersApi));
 }
 public ShopGroupBuilder(IShopGroupRepository shopGroupRepository, IPlatformTokenProvider platformTokenProvider, IUsersApi usersApi,
     IShopGroupWallPublishApi shopGroupWallPublishApi, IGroupMemberRepository groupMemberRepository, IShopGroupFromInputValidator shopGroupFromInputValidator)
 {
     _usersApi = usersApi;
     _shopGroupRepository = shopGroupRepository;
     _platformTokenProvider = platformTokenProvider;
     _shopGroupFromInputValidator = shopGroupFromInputValidator;
     _groupMemberRepository = groupMemberRepository;
     _shopGroupWallPublishApi = shopGroupWallPublishApi;
 }
Exemple #15
0
 public PlatformTokenDistributer(IPlatformTokenProvider platformTokenProvider,
                                 IPlatformHashProvider platformHashProvider,
                                 IUsersApi usersApi,
                                 ILoggingContext loggingContext)
 {
     _platformTokenProvider = platformTokenProvider;
     _platformHashProvider  = platformHashProvider;
     _usersApi       = usersApi;
     _loggingContext = loggingContext;
 }
Exemple #16
0
 public UsersSteps(
     IUsersApi usersApi,
     UsersCoordinator usersCoordinator,
     AuthContext authContext,
     UsersContext usersContext)
 {
     _usersApi         = usersApi;
     _usersCoordinator = usersCoordinator;
     _authContext      = authContext;
     _usersContext     = usersContext;
 }
 public PostLoginController(IPlatformProxy platformProxy, IApplicationSettings applicationSettings, IPlatformTokenProvider platformTokenProvider,
      IPlatformSettings platformSettings, IPlatformRoutes platformRoutes, IUsersApi usersApi, IGroupMemberRepository groupMemberRepository)
 {
     _platformTokenProvider = platformTokenProvider;
     _platformProxy = platformProxy;
     _applicationSettings = applicationSettings;
     _platformSettings = platformSettings;
     _platformRoutes = platformRoutes;
     _usersApi = usersApi;
     _groupMemberRepository = groupMemberRepository;
 }
 public JoinSgController(IUsersApi usersApi, IGroupMemberRepository groupMemberRepository,IPlatformTokenProvider platformTokenProvider,
     ITokenResolver tokenResolver, IGroupMemberResolver groupMemberResolver, IShopGroupFromInputValidator shopGroupFromInputValidator,
     IShopGroupRepository shopGroupRepository, IGroupIdProvider groupIdProvider)
 {
     _usersApi = usersApi;
     _groupMemberRepository = groupMemberRepository;
     _tokenResolver = tokenResolver;
     _groupMemberResolver = groupMemberResolver;
     _shopGroupFromInputValidator = shopGroupFromInputValidator;
     _platformTokenProvider = platformTokenProvider;
     _shopGroupRepository = shopGroupRepository;
     _groupIdProvider = groupIdProvider;
 }
 public HomeController(IShopGroupRepository shopGroupRepository, IPlatformTokenProvider platformTokenProvider,IUsersApi usersApi, ITokenResolver tokenResolver,
      IProductsApi productsApi, IAuthApi authApi, IPlatformSettings platformSettings, IGroupMemberRepository groupMemberRepository, IGroupMemberResolver groupMemberResolver)
 {
     _platformTokenProvider = platformTokenProvider;
     _platformSettings = platformSettings;
     _usersApi = usersApi;
     _shopGroupRepository = shopGroupRepository;
     _groupMemberRepository = groupMemberRepository;
     _productsApi = productsApi;
     _authApi = authApi;
     _tokenResolver = tokenResolver;
     _groupMemberResolver = groupMemberResolver;
 }
Exemple #20
0
        public static async Task <HttpResponseMessage> Run(
            [HttpTrigger(AuthorizationLevel.Anonymous, methods: new string[] { "GET", "POST", "PUT", "OPTIONS" })] HttpRequestMessage req,
            TraceWriter log,
            [Inject(typeof(IUsersApi))] IUsersApi usersApi)
        {
            var httpMethods = new Dictionary <string, Func <HttpRequestMessage, TraceWriter, Task <HttpResponseMessage> > >
            {
                { "GET", async(r, l) => await usersApi.Get(r, l) },
                { "POST", async(r, l) => await usersApi.Post(r, l) },
                { "PUT", async(r, l) => await usersApi.Put(r, l) },
            };

            var response = httpMethods.ContainsKey(req.Method.Method) ? await httpMethods[req.Method.Method](req, log)
                : req.CreateResponse(req.Method.Method == "OPTIONS" ? HttpStatusCode.OK : HttpStatusCode.NotFound);

            AddCORSHeader(req, response, $"GET, POST, PUT, OPTIONS");

            return(response);
        }
Exemple #21
0
 public GetAllUsersSteps(IUsersApi usersApi, IUsersTestContext usersContext)
 {
     _usersApi     = usersApi;
     _usersContext = usersContext;
 }
 public void GivenTheGithubApi(string url)
 {
     _usersApi = RestClient.For <IUsersApi>(url);
 }
Exemple #23
0
 public UserService(ISettingService settingService, IUsersApi usersApi)
 {
     _settingService = settingService;
     _usersApi       = usersApi;
 }
 public CheckOutModel(IApiFactory factory)
 {
     _basketApi = factory.BasketApi ?? throw new ArgumentNullException(nameof(_basketApi));
     _orderApi  = factory.OrderApi ?? throw new ArgumentNullException(nameof(_orderApi));
     _usersApi  = factory.UsersApi ?? throw new ArgumentNullException(nameof(_usersApi));
 }
Exemple #25
0
 public UsersCoordinator(IUsersApi userApi, IFixture fixture)
 {
     _userApi = userApi;
     _fixture = fixture;
 }
        public override void TestFixtureSetUp()
        {
            base.TestFixtureSetUp();

            usersApi = soundCloudClient.Users;
        }
Exemple #27
0
 public ProfileModel(IApiFactory factory)
 {
     _usersApi = factory.UsersApi ?? throw new ArgumentNullException(nameof(_usersApi));
 }
Exemple #28
0
 public void Init()
 {
     instance = RestService.For <IUsersApi>(hostUrl);
 }
Exemple #29
0
 public UpdateAUserSteps(IUsersApi usersApi, IUsersTestContext userContext, IUserRepository repository)
 {
     _usersApi    = usersApi;
     _userContext = userContext;
     _repository  = repository;
 }
 public UsersController(IUsersApi usersApi)
 {
     _usersApi = usersApi;
 }
Exemple #31
0
 public CreateAUserSteps(IUsersApi usersApi, IUsersTestContext userContext)
 {
     _usersApi    = usersApi;
     _userContext = userContext;
 }
Exemple #32
0
        public override void TestFixtureSetUp()
        {
            base.TestFixtureSetUp();

            usersApi = soundCloudClient.Users;
        }
Exemple #33
0
 public IdentifyUserSteps(IUsersApi usersApi, IUsersTestContext usersContext)
 {
     _usersApi     = usersApi;
     _usersContext = usersContext;
 }