Beispiel #1
0
 public SearchQueryParameterGenerator(
     ISearchQueryValidator searchQueryValidator,
     ITwitterStringFormatter twitterStringFormatter)
 {
     _searchQueryValidator   = searchQueryValidator;
     _twitterStringFormatter = twitterStringFormatter;
 }
 public SearchQueryParameterGenerator(
     ISearchQueryValidator searchQueryValidator, 
     ITwitterStringFormatter twitterStringFormatter)
 {
     _searchQueryValidator = searchQueryValidator;
     _twitterStringFormatter = twitterStringFormatter;
 }
 public SearchQueryGenerator(
     ISearchQueryValidator searchQueryValidator,
     IQueryParameterGenerator queryParameterGenerator,
     ISearchQueryParameterGenerator searchQueryParameterGenerator)
 {
     _searchQueryValidator          = searchQueryValidator;
     _queryParameterGenerator       = queryParameterGenerator;
     _searchQueryParameterGenerator = searchQueryParameterGenerator;
 }
 public SearchQueryGenerator(
     ISearchQueryValidator searchQueryValidator,
     IQueryParameterGenerator queryParameterGenerator,
     ISearchQueryParameterGenerator searchQueryParameterGenerator)
 {
     _searchQueryValidator = searchQueryValidator;
     _queryParameterGenerator = queryParameterGenerator;
     _searchQueryParameterGenerator = searchQueryParameterGenerator;
 }
 public SearchQueryParameterGenerator(
     ISearchQueryValidator searchQueryValidator,
     ITwitterStringFormatter twitterStringFormatter,
     IFactory <ITweetSearchParameters> tweetSearchParameterFactory)
 {
     _searchQueryValidator        = searchQueryValidator;
     _twitterStringFormatter      = twitterStringFormatter;
     _tweetSearchParameterFactory = tweetSearchParameterFactory;
 }
 public SearchQueryGenerator(
     ISearchQueryValidator searchQueryValidator,
     IQueryParameterGenerator queryParameterGenerator,
     ITweetinviSettingsAccessor tweetinviSettingsAccessor,
     ISearchQueryParameterGenerator searchQueryParameterGenerator)
 {
     _searchQueryValidator          = searchQueryValidator;
     _queryParameterGenerator       = queryParameterGenerator;
     _tweetinviSettingsAccessor     = tweetinviSettingsAccessor;
     _searchQueryParameterGenerator = searchQueryParameterGenerator;
 }
Beispiel #7
0
 public SearchQueryGenerator(
     ISearchQueryValidator searchQueryValidator,
     IQueryParameterGenerator queryParameterGenerator,
     ITweetinviSettingsAccessor tweetinviSettingsAccessor,
     ISearchQueryParameterGenerator searchQueryParameterGenerator)
 {
     _searchQueryValidator = searchQueryValidator;
     _queryParameterGenerator = queryParameterGenerator;
     _tweetinviSettingsAccessor = tweetinviSettingsAccessor;
     _searchQueryParameterGenerator = searchQueryParameterGenerator;
 }
        public void TestGenerateSearchQueryParameterStringDoesNotUrlEncode()
        {
            // Arrange
            const string                  expected       = "Something that will get URL encoded";
            ISearchQueryValidator         queryValidator = A.Fake <ISearchQueryValidator>();
            SearchQueryParameterGenerator paramGenerator = new SearchQueryParameterGenerator(queryValidator);

            // Act
            string actual = paramGenerator.GenerateSearchQueryParameter(expected);

            // Assert
            Assert.AreEqual(expected, actual);
        }
Beispiel #9
0
 public SearchQueryParameterGenerator(
     ISearchQueryValidator searchQueryValidator)
 {
     _searchQueryValidator = searchQueryValidator;
 }