Samples for Mocking Client Types
See original GitHub issueSummary
The Event Hubs client library aims to be mockable and fully support testability. To help illustrate usage of the new API for the testing scenarios, a set of samples mocking the various Event Hubs client types and illustrating use of the model factory is needed.
Scope of Work
-
Implement a sample or set of samples demonstrating a basic approach for mocking the high level client types for their core scenarios. Included should be:
EventHubProducerClient
EventHubConsumerClient
EventProcessorClient
PartitionReceiver
EventProcessor<TPartition>
-
Ensure that the use of the model factory is demonstrated for key types, including:
EventData
EventDataBatch
EventHubProperties
PartitionProperties
PartitionPublishingProperties
LastEnqueuedEventProperties
PartitionContext
Success Criteria
-
The sample(s) have been created, with a clear and simple approach and detailed discussion to support the goal of helping those unfamiliar with Event Hubs to get started testing its types.
-
The sample(s) adhere to the coding conventions and standards defined for track two libraries.
-
All projects in the solution compile; any warnings that exist have either been fixed or additional work items filed to address them if they were deemed non-critical.
-
The sample(s) follow the pattern within the Event Hubs library, are compiled and executed as part of the Live test suite.
Related
The following are promising pull requests begun by a community member before they were unable to complete due to time constraints. These would serve as a great starting point.
- Samples for Mocking Client Types (EventProcessor)
- Samples for Mocking Client Types (EventHubProducerClient)
References
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:6 (2 by maintainers)
Top GitHub Comments
Yes, this work has not been completed. There have been some contributions that formed a good foundation for the samples, but there is still some work needed to complete the sample.
Should this issue still have the status of Open?