public SynonymsUseCase(ISynonymGroupsGateway synonymGroupsGateway,
                        ISynonymWordsGateway synonymWordsGateway,
                        IGoogleClient googleClient)
 {
     _synonymGroupsGateway = synonymGroupsGateway;
     _synonymWordsGateway  = synonymWordsGateway;
     _googleClient         = googleClient;
 }
示例#2
0
 public void Setup()
 {
     _mockSynonymGroupsGateway = new Mock <ISynonymGroupsGateway>();
     _mockSynonymWordsGateway  = new Mock <ISynonymWordsGateway>();
     _mockGoogleClient         = new GoogleClientMocked();
     _classUnderTest           = new SynonymsUseCase(_mockSynonymGroupsGateway.Object,
                                                     _mockSynonymWordsGateway.Object,
                                                     _mockGoogleClient);
 }
        public Handler()
        {
            var connectionString = Environment.GetEnvironmentVariable("CONNECTION_STRING");
            var optionsBuilder   = new DbContextOptionsBuilder();

            optionsBuilder.UseNpgsql(connectionString);
            _context              = new DatabaseContext(optionsBuilder.Options);
            _googleClient         = new GoogleClient();
            _synonymGroupsGateway = new SynonymGroupsGateway(_context);
            _synonymWordsGateway  = new SynonymWordsGateway(_context);
            _synonymsUseCase      = new SynonymsUseCase(_synonymGroupsGateway, _synonymWordsGateway, _googleClient);
        }
 public GoogleAuthenticationController(
     GoogleConfiguration configuration,
     IGoogleClient googleClient,
     IJwtService jwtService,
     IMapper mapper,
     IRngUtil rngUtil,
     ISocialMediaUserLinkService socialMediaUserLinkService
     )
 {
     _configuration = configuration;
     _googleClient  = googleClient;
     _jwtService    = jwtService;
     _mapper        = mapper;
     _rngUtil       = rngUtil;
     _socialMediaUserLinkService = socialMediaUserLinkService;
 }
示例#5
0
 public OrderController(IRepositoryK repositoryk, IGoogleClient googleClient)
 {
     this.googleClient = googleClient;
     this.repositoryk  = repositoryk;
 }
 public GoogleClientService(IGoogleClient googleClient) => _googleClient = googleClient;
示例#7
0
 public GoogleLoginDataProvider(IGoogleClient googleClient, ICacheService cacheService)
 {
     _googleClient = googleClient;
     _cacheService = cacheService;
 }
 public GoogleService(IGoogleClient googleClient)
 {
     _googleClient = googleClient;
 }
示例#9
0
 public SearchService(IGoogleClient googleClient, IBingClient bingClient)
 {
     _googleClient = googleClient;
     _bingClient   = bingClient;
 }