-
Notifications
You must be signed in to change notification settings - Fork 5k
Open
Labels
ClientThis issue is related to a non-management packageThis issue is related to a non-management packageMapsService AttentionWorkflow: This issue is responsible by Azure service team.Workflow: This issue is responsible by Azure service team.customer-reportedIssues that are reported by GitHub users external to the Azure organization.Issues that are reported by GitHub users external to the Azure organization.needs-team-attentionWorkflow: This issue needs attention from Azure service team or SDK teamWorkflow: This issue needs attention from Azure service team or SDK teamquestionThe issue doesn't require a change to the product in order to be resolved. Most issues start as thatThe issue doesn't require a change to the product in order to be resolved. Most issues start as that
Description
Library name
Azure.Maps.Search
Please describe the feature.
I everybody,
I use Moq for unit tests and I try to mock MapsSearchClient.GetGeocodingAsync. But I am unable to fake the GeocodingResponse class all of its constructors ar internal and no interface on the class. The same problem for subclasses of GeocodingResponse.
On assembly Azure.Maps.Search.Models:
- Azure.Maps.Search.Models.FeaturesItem
- Azure.Maps.Search.Models.FeaturesItemProperties
- Azure.Maps.Search.Models.Address
- Intersection
- AddressAdminDistrictsItem
- AddressCountryRegion
- GeocodePointsItem
I see the MapsSearchModelFactory , may help but missing the FeaturesItem generator.
I can't apply the recommendations from the documentation Mocking
Thanks!
Pieeer1
Metadata
Metadata
Assignees
Labels
ClientThis issue is related to a non-management packageThis issue is related to a non-management packageMapsService AttentionWorkflow: This issue is responsible by Azure service team.Workflow: This issue is responsible by Azure service team.customer-reportedIssues that are reported by GitHub users external to the Azure organization.Issues that are reported by GitHub users external to the Azure organization.needs-team-attentionWorkflow: This issue needs attention from Azure service team or SDK teamWorkflow: This issue needs attention from Azure service team or SDK teamquestionThe issue doesn't require a change to the product in order to be resolved. Most issues start as thatThe issue doesn't require a change to the product in order to be resolved. Most issues start as that