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);
        }
Beispiel #2
0
        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);
        }