Skip to content

Commit

Permalink
[Messaging] Mocking sample annotation (#37910)
Browse files Browse the repository at this point in the history
The focus of these changes is to annotate the mocking samples for Event Hubs
and Service Bus with a call-out to the general Azure SDK unit testing and
mocking article.

While the article is focused around HTTP services and
does not replace these dedicated samples, the additional context and examples
may be helpful to developers.
  • Loading branch information
jsquire authored Jul 29, 2023
1 parent 388caf4 commit 132a380
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ Event Hubs is built to support unit testing with mocks, as described in the [Azu

The following examples focus on scenarios likely to occur in applications, and demonstrate how to mock the Event Hubs types typically used in each scenario. The code snippets utilize the mock object framework, Moq, in order to provide practical examples. However, many mocking frameworks exist and can be used with the same approach in mind.

For more general information and examples on mocking with the Azure SDK, please see [Unit testing and mocking with the Azure SDK for .NET](https://learn.microsoft.com/dotnet/azure/sdk/unit-testing-mocking).

## Table of contents

- **Publishing events**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ The Service Bus client library is built to support unit testing with mocks, as d

The following examples focus on scenarios likely to occur in applications, and demonstrate how to mock the Service Bus types typically used in each scenario. The code snippets utilize the mock object framework, Moq, in order to provide practical examples. However, many mocking frameworks exist and can be used with the same approach in mind.

For more general information and examples on mocking with the Azure SDK, please see [Unit testing and mocking with the Azure SDK for .NET](https://learn.microsoft.com/dotnet/azure/sdk/unit-testing-mocking).

## Table of contents

- **Sending and receiving messages**
Expand Down

0 comments on commit 132a380

Please sign in to comment.