Represents the NuGet versions.
- Fixed: The
EventSubscriberTester
was not outputting all messages toOut
; was usingProgress
which generated confusing log output. - Enhancement Deprecated/obsoleted
AgentTester.StartupTestServer
and replaced withAgentTester.TestServerStart
to align the configuration probing withBeef.AspNetCore.WepApi.WebApiStartup.ConfigurationBuilder
for greater consistency.
- Enhancement: Added an overload to the
AgentTester.StartupTestServer
toaddUserSecrets
. This will enable: https://docs.microsoft.com/en-us/aspnet/core/security/app-secrets.
- Enhancement: Updated all dependent NuGet packages to their latest respective version.
- Enhancement: The
TestEventSubscriberHost
updated to reuse theExecutionContext.Current
for the test. - Enhancement: Added additional capability around invalid event data (
SubscriberStatus.InvalidEventData
) conversion and auditing/logging. - Enhancement: Tidied up the test logging code to use
TestContext.Out.WriteLine
. - Fixed: The
EventSubscriberHost
was not correctly validating theResult.Status
which has been corrected.
- Added:
TestEventSubscriberHost
to suppoer the intra-domain based testing of event subscribers. - Enhancement: Added support for the use of wildcards where specifying the user name for the
ExpectChangeLogCreated
andExpectChangeLogCreated
methods.
- Enhancement: Added
GrpcAgentTester
to give similar experience toAgentTester
for invoking the gRPC service agents for intra-domain testing.
- Enhancement: Updated all dependent NuGet packages to their latest respective version.
- Enhancement: Added request and response
ContentType
to the logging to aid debugging.
- Upgrade: Upgraded the project to .NET Core 3.1.
- Added:
AgentTester.DefaultExpectNoEvents
added to effectively defaultExpectNoEvent
forcing tests to explicitly define all expected events.
- Enhancement: FxCop version upgrade; new NuGet package released in error as there was no change to runtime funcationality.
- Enhancement: Sprinkled
Task.ConfigureAwait(false)
as per https://devblogs.microsoft.com/dotnet/configureawait-faq/.
- Fixed: The
AgentTester.ExpectEvent
will now validate the event value where specified. Also, all expected events will now need to be specified, in the order that they are raised.
- Added: The
AgentTester
has been updated to reflect theIReferenceDataProvider
changes.
- Added:
ExpectEvent
,ExpectNoEvent
andExpectNoEvents
added toAgentTester
. This is enabled via the newExpectEvent
supporting class.
- Added:
TestSetUp.CreateLogger
enables creation of anILogger
that writes directly to the console.
- Added:
TestSetUp.RegisterSetUp
has had a new overload that supports an asynchronous function.
- Added:
ExpectException.Throws
has had a new overload added that supports an async method (i.e. returnsTask
). - Enhancement:
ExpectException.Throws
message argument where set to '*' will accept any message text; i.e. just validates theType
ofException
.
- Fixed: Removed any explicit Cosmos logic/dependencies into either
Beef.Core
(YAML) orBeef.Data.Cosmos
. These should be referenced as required. - Added:
ReturnsWebApiAgentResultAsync
extensions methods (for mocking via MOQ) added to supportXxxServiceAgent
mocking scenarios.
- Fixed:
Factory.ResetLocal
added to the internal finally (try-catch) for aTestSetUpAttribute
. This will ensure configuration does not cross invocations; appears to be an edgecase for parallel testing.
- Fixed: Given the
AsyncLocal
nature of the Factory Local implementation there should be no need to perform aFactory.ResetLocal
- the invocations have been removed.
- Fixed:
Factory.ResetLocal
was incorrectly being called for eachAgentTester
tester invocation; accidently resetting previously set mock objects for the test.
- Fixed: Renamed the
Run
methods toThrows
within theExpectValidationException
to be consistent withExpectException
. As this is a rename, will result in a breaking compilation error that will need to be resolved.
- Fixed:
AgentTester.StartupTestServer
optional method overload changed fromTestServer
toIWebHostBuilder
.
- Enhancement: Package
Beef.Core
v2.1.11 change asExecutionContext.SetCurrent
constraint removal required.
- Enhancement: Added asynchronous
RunAsync
methods inExpectValidationException
. - Enhancement: New overloads for
AgentTester
andTestSetupAttribute
to allow user identifier and args; these are then passed through to newCreateExecutionContext
function to allow creation overriding. - Enhancement: New
ToLongString
extension method forchar
to assist with creating long strings or repeating characters.
- New: Added support for Azure Cosmos testing, specifically creation of Cosmos Containers and related data importing.
- Enhancement: Improved the .config file and environment variable support.
- Fixed: Inconsistent version numbers.
- New: Initial publish to GitHub.