public AdvertisementItemService(IAdvertisementItemDbService advertisementItemDbService, ICoordinatesCalculator coordinatesCalculator, IAdvertisementItemPhotosService advertisementItemPhotosService, IAppFilesPathHelper appFilesPathHelper, IKeywordsService keywordsService, IChatHubCacheService chatHubCacheService) { this.advertisementItemDbService = advertisementItemDbService; this.coordinatesCalculator = coordinatesCalculator; this.advertisementItemPhotosService = advertisementItemPhotosService; this.appFilesPathHelper = appFilesPathHelper; this.keywordsService = keywordsService; this.chatHubCacheService = chatHubCacheService; }
public AdvertisementItemService(IAdvertisementItemDbService advertisementItemDbService, ICoordinatesCalculator coordinatesCalculator, IPhotosService photosService, IAppFilesPathHelper appFilesPathHelper, IKeywordsService keywordsService, IChatHubCacheService chatHubCacheService, ILastUsersChecksCacheService lastUsersChecksCacheService, IGoogleMapsAPIService googleMapsAPIService) { this.advertisementItemDbService = advertisementItemDbService; this.coordinatesCalculator = coordinatesCalculator; this.photosService = photosService; this.appFilesPathHelper = appFilesPathHelper; this.keywordsService = keywordsService; this.chatHubCacheService = chatHubCacheService; this.lastUsersChecksCacheService = lastUsersChecksCacheService; this.googleMapsAPIService = googleMapsAPIService; }
public RedditService( IRedditClient client, IKeywordsService keywordsService, ICommentsService commentsService, ISubredditNamesService subredditNamesService) { _client = client ?? throw new ArgumentNullException(nameof(client)); _keywordsService = keywordsService ?? throw new ArgumentNullException(nameof(keywordsService)); _commentsService = commentsService ?? throw new ArgumentNullException(nameof(commentsService)); _subredditNamesService = subredditNamesService ?? throw new ArgumentNullException(nameof(subredditNamesService)); _lastPosts = new Dictionary <string, Post>(); _client.Connect(); }
public KeywordsServiceShould() { goodMockSettings = new Mock <IOptions <ExternalApisSettings> >(); goodMockSettings.SetupGet(g => g.Value).Returns(new ExternalApisSettings { KeywordsApiKey = "ORjN9p5UXZf8RlHBc7pSmkWM5xra3XWZha82GQrgs84", KeywordsApiUri = "https://apis.paralleldots.com/v4/keywords", UseAlgorithmiaKeywords = false }); badMockSettings = new Mock <IOptions <ExternalApisSettings> >(); badMockSettings.SetupGet(g => g.Value).Returns(new ExternalApisSettings()); keywordsService = new KeywordsService(goodMockSettings.Object); }
public KeywordsController(IKeywordsService keywordsService) { this.keywordsService = keywordsService; }
public KeywordsService_Tests() { serviceUnderTest = new KeywordsService(keywordsDbServiceMock.Object); }
public UserAdminController(IUserTableService iUserTableService, IKeywordsService iKeywordsService, IMapper mapper) { userTableService = iUserTableService; keywordsService = iKeywordsService; Mapper = mapper; }
public HomeController(IKeywordsService keywordsService) { _keywordsService = keywordsService; }
public KeywordsService_Tests() { serviceUnderTest = new KeywordsService(keywordsDbServiceMock.Object); }
public RecordsService(IRecordsRepository recordsRepository, ITranslateService translateService, IKeywordsService keywordsService) { this.translateService = translateService; this.keywordsService = keywordsService; this.recordsRepository = recordsRepository; }