Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v5.0.0 #79

Merged
merged 2 commits into from
Nov 21, 2024
Merged

v5.0.0 #79

merged 2 commits into from
Nov 21, 2024

Conversation

chullybun
Copy link
Collaborator

  • Enhancement: UnitTestEx package updated to include only standard .NET core capabilities; new packages created to house specific as follows:
    • UnitTestEx.Azure.Functions created to house Azure Functions specific capabilities;
    • UnitTestEx.Azure.ServiceBus created to house Azure Service Bus specific capabilities;
    • This allows for more focused testing capabilities and provides a common pattern for ongoing extensibility; whilst also looking to limit cross package dependency challenges.
    • Existing usage will require references to the new packages as required. There should be limited need to update existing tests to use beyond the requirement for the root UnitTestEx namespace. The updated default within UnitTestEx is to expose the key capabilities from the root namespace. For example, using UnitTestEx.NUnit, should be replaced with using UnitTestEx.
  • Enhancement: Updated UnitTestEx.Xunit to align with UnitTestEx.NUnit and UnitTestEx.MSTest for consistency; the following UnitTestBase methods have been removed and should be replaced with:
    • CreateMockHttpClientFactory() replaced with MockHttpClientFactory.Create();
    • CreateGenericTester() replaced with GenericTester.Create();
    • CreateApiTester<TStartup>() replaced with ApiTester.Create<TStartup>();
    • CreateFunctionTester<TStartup>() replaced with FunctionTester.Create<TStartup>().

- *Enhancement:* `UnitTestEx` package updated to include only standard .NET core capabilities; new packages created to house specific as follows:
  - `UnitTestEx.Azure.Functions` created to house Azure Functions specific capabilities;
  - `UnitTestEx.Azure.ServiceBus` created to house Azure Service Bus specific capabilities;
  - This allows for more focused testing capabilities and provides a common pattern for ongoing extensibility; whilst also looking to limit cross package dependency challenges.
  - Existing usage will require references to the new packages as required. There should be limited need to update existing tests to use beyond the requirement for the root `UnitTestEx` namespace. The updated default within `UnitTestEx` is to expose the key capabilities from the root namespace. For example, `using UnitTestEx.NUnit`, should be replaced with `using UnitTestEx`.
- *Enhancement:* Updated `UnitTestEx.Xunit` to align with `UnitTestEx.NUnit` and `UnitTestEx.MSTest` for consistency; the following `UnitTestBase` methods have been removed and should be replaced with:
  - `CreateMockHttpClientFactory()` replaced with `MockHttpClientFactory.Create()`;
  - `CreateGenericTester()` replaced with `GenericTester.Create()`;
  - `CreateApiTester<TStartup>()` replaced with `ApiTester.Create<TStartup>()`;
  - `CreateFunctionTester<TStartup>()` replaced with `FunctionTester.Create<TStartup>()`.
@chullybun chullybun changed the title ## v5.0.0 v5.0.0 Nov 21, 2024
@chullybun chullybun merged commit c210ed1 into main Nov 21, 2024
2 checks passed
@chullybun chullybun deleted the v5.0.0 branch November 21, 2024 18:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant