public void SetUp()
        {
            _aRequest = new Request();
            _retrievedPlaces = new Client.Resources.Places();
            _placeSearchResult = new PlaceSearchResult();
            _aLicenseInfo = new LicenseInfo { Login = "******", Key = "key" };

            _mockedSearchRequestBuilder = new Mock<IRequestBuilder>();
            _mockedRetriever = new Mock<IResourceRetriever>();
            _mockedConverter = new Mock<IPlacesConverter>();

            _provider = new PlaceSearcher(
                _mockedRetriever.Object,
                _mockedConverter.Object,
                _mockedSearchRequestBuilder.Object);
        }
        private void WhenFindingByRadius()
        {
            _placeSearchRequest = new PlaceSearchRequest
                                      {
                                          CategoryId = CategoryId,
                                          Latitude = Latitude,
                                          LicenseInfo = _aLicenseInfo,
                                          Longitude = Longitude,
                                          Radius = Radius,
                                          Term = Term,
                                          StartIndex = StartIndex
                                      };

            _placeSearchRetrievedByProvider = _provider.ByRadius(_placeSearchRequest);
        }
        private void WhenSearchingByPaginationUri()
        {
            _paginationRequest = new PaginationRequest
                                     {
                                         LicenseInfo = _aLicenseInfo,
                                         UriPathAndQuery = PaginationUri
                                     };

            _placeSearchRetrievedByProvider = _provider.ByUri(_paginationRequest);
        }
        private void WhenFindingByTerm()
        {
            _placeSearchRequest = new PlaceSearchRequest
            {
                Term = Term,
                City = City,
                State = State,
                LicenseInfo = _aLicenseInfo,
                StartIndex = StartIndex
            };

            _placeSearchRetrievedByProvider = _provider.ByCategory(_placeSearchRequest);
        }