Skip to content

Latest commit

 

History

History
173 lines (124 loc) · 10.6 KB

CHANGELOG.md

File metadata and controls

173 lines (124 loc) · 10.6 KB

Change log

Represents the NuGet versions.

v4.2.7

  • Issue 184. Support loading the GetBeforeRequest after the constructor.

v4.2.6

  • Fixed: Updated target frameworks to be netcoreapp3.1;net6.0.

v4.2.5

v4.2.4

  • Enhancement: Added UnitTestEx support to enable MockHttpClientFactory for testing of mocked HttpClient.
  • Enhancement: Added new TestSetUp.GetValueFromJsonResource<T> to enable the creation of value from an embedded resource file containing JSON.
  • Enhancement: Added new ExpectJsonResourceValue to AgentTester to expect the value from an embedded resource file containing JSON.
  • Enhancement: The ContextOutLogger and CorrelationIdLogger classes now support scopes and will report values in the output where selected. The various testers support a new includeLoggingScopesInOutput in their respective constructors to enable (is disabled by default).

v4.2.3

  • Enhancement: Updated GrpcAgentTestBase to accomodate GrpcAgentResult.StatusCode rename.
  • Enhancement: Added new ReturnsHttpAgentResultAsync extension methods for IReturnsResult<TMock> to enable dependency injection replacement of mocked responses.

v4.2.2

  • Enhancement: Updated GrpcAgentTestBase to enable instantiation of Agent with new AutoMapper.IMapper requirement.
  • Enhancement: Added ConfigureLocalServices method to UsingAgentTesterServer to allow dependency injection (DI) configuration for local (non-server related) services.

v4.2.1

  • Enhancement: Re-baseline all Beef components to version v4.2.1 required by Beef.Abstractions introduction; including updating all dependent NuGet packages to their latest respective version.
  • Fixed: The ValidationTester sets the default TextProvider to DefaultTextProvier within its static constructor to ensure the default texts are used for the validation messages.

v4.1.12

  • Enhancement: Added constructor to UsingAgentTesterServer to allow settings for underlying AgentTestServer.

v4.1.11

  • Enhancement: Added Test method to EventSubscriberTester to reset the internal state so the instance can be reused for a new test execution.

v4.1.10

  • Enhancement: Adjusted the formatting of the logger output to indent second and subsequent lines.

v4.1.9

  • Fixed: The AgentTesterWaf was not correctly applying the test configuration (AgentTester.BuildConfiguration<TStartup>) which excluded any test specific configurations.
  • Fixed: The ValidationTester was not failing where an error occured and the error was not expected.
  • Fixed: The AgentTesterWaf was throwing an error that the contentRootPath does not exist.
  • Enhancement: Updated project to produce symbol packages for improved debugging.

v4.1.8

  • Enhancement: Added EventData.Source to the test output log.
  • Enhancement: Updated the event testing to support new IEventDataContentSerializer and IEventDataConverter.
  • Enhancement: Added Response.Content to the test detail summary where failure due to invalid status code.

v4.1.7

  • Enhancement: Updated all dependent NuGet packages to their latest respective version.

v4.1.6

  • Fixed: Associated with Issue 108. The testing output will include the EventPublisherBase.SendAsync count.

v4.1.5

  • Enhancement: Issue 98.

v4.1.4

  • Removed: Breaking change to ExpectValidationException with its deprecation (removal). Existing usage should be migrated to the more feature rich ValidationTester.
  • Enhancement: New ValidationTester.CreateAndRunAsync and ValidationTester.CreateAndRun methods have been added that creates (instantiates) the Validator using the underlying Dependency Injection (DI) capability and validates the passed value.
  • Enhancement: The ValidationTester inherits the Dependency Injection (DI) ServiceCollection where used within the context of a TestSetUp and UsingAgentTesterServer combination to avoid the need to re-specify in these scenarios.
  • Enhancement: The EventSubscriberTester has had Dependency Injection (DI) support enabled similar to the ValidationTester.

v4.1.3

  • Fixed: Issue 83 fixed. ExpectEventPublisher updated to swallow (ignore) events raised where the ExecutionContext.CorrelationId is null; versus throw an exception.

v4.1.2

  • Enhancement: Added ValidationTester to enable simpler unit-tests (with services mocking) of validators external to the API. Provides a simpler and more test runtime performant means to validate versus having to create all the required test data within the underlying data source.
  • Enhancement Added ReplaceSingleton, ReplaceScoped and ReplaceTransient extension methods to IServiceCollection which will replace if existing; otherwise, add.
  • Enhancement: Moved all subscriber host arguments to EventSubscriberHostArgs to centralize and enable simple configuration via DI.

v4.1.1

  • Enhancement: Introduction of Dependency Injection support.

v3.1.9

  • Fixed: The EventSubscriberTester was not outputting all messages to Out; was using Progress which generated confusing log output.
  • Enhancement Deprecated/obsoleted AgentTester.StartupTestServer and replaced with AgentTester.TestServerStart to align the configuration probing with Beef.AspNetCore.WepApi.WebApiStartup.ConfigurationBuilder for greater consistency.

v3.1.8

v3.1.7

  • Enhancement: Updated all dependent NuGet packages to their latest respective version.

v3.1.6

  • Enhancement: The TestEventSubscriberHost updated to reuse the ExecutionContext.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 the Result.Status which has been corrected.

v3.1.5

  • 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 and ExpectChangeLogCreated methods.

v3.1.4

  • Enhancement: Added GrpcAgentTester to give similar experience to AgentTester for invoking the gRPC service agents for intra-domain testing.

v3.1.3

  • Enhancement: Updated all dependent NuGet packages to their latest respective version.

v3.1.2

  • Enhancement: Added request and response ContentType to the logging to aid debugging.

v3.1.1

  • Upgrade: Upgraded the project to .NET Core 3.1.

v2.1.20

  • Added: AgentTester.DefaultExpectNoEvents added to effectively default ExpectNoEvent forcing tests to explicitly define all expected events.

v2.1.19

  • Enhancement: FxCop version upgrade; new NuGet package released in error as there was no change to runtime funcationality.

v2.1.18

v2.1.17

  • 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.

v2.1.16

  • Added: The AgentTester has been updated to reflect the IReferenceDataProvider changes.

v2.1.15

  • Added: ExpectEvent, ExpectNoEvent and ExpectNoEvents added to AgentTester. This is enabled via the new ExpectEvent supporting class.

v2.1.14

  • Added: TestSetUp.CreateLogger enables creation of an ILogger that writes directly to the console.

v2.1.13

  • Added: TestSetUp.RegisterSetUp has had a new overload that supports an asynchronous function.

v2.1.12

  • Added: ExpectException.Throws has had a new overload added that supports an async method (i.e. returns Task).
  • Enhancement: ExpectException.Throws message argument where set to '*' will accept any message text; i.e. just validates the Type of Exception.

v2.1.11

  • Fixed: Removed any explicit Cosmos logic/dependencies into either Beef.Core (YAML) or Beef.Data.Cosmos. These should be referenced as required.
  • Added: ReturnsWebApiAgentResultAsync extensions methods (for mocking via MOQ) added to support XxxServiceAgent mocking scenarios.

v2.1.10

  • Fixed: Factory.ResetLocal added to the internal finally (try-catch) for a TestSetUpAttribute. This will ensure configuration does not cross invocations; appears to be an edgecase for parallel testing.

v2.1.9

  • Fixed: Given the AsyncLocal nature of the Factory Local implementation there should be no need to perform a Factory.ResetLocal - the invocations have been removed.

v2.1.8

  • Fixed: Factory.ResetLocal was incorrectly being called for each AgentTester tester invocation; accidently resetting previously set mock objects for the test.

v2.1.7

  • Fixed: Renamed the Run methods to Throws within the ExpectValidationException to be consistent with ExpectException. As this is a rename, will result in a breaking compilation error that will need to be resolved.

v2.1.6

  • Fixed: AgentTester.StartupTestServer optional method overload changed from TestServer to IWebHostBuilder.

v2.1.5

  • Enhancement: Package Beef.Core v2.1.11 change as ExecutionContext.SetCurrent constraint removal required.

v2.1.4

  • Enhancement: Added asynchronous RunAsync methods in ExpectValidationException.
  • Enhancement: New overloads for AgentTester and TestSetupAttribute to allow user identifier and args; these are then passed through to new CreateExecutionContext function to allow creation overriding.
  • Enhancement: New ToLongString extension method for char to assist with creating long strings or repeating characters.

v2.1.3

  • 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.

v2.1.2

  • Fixed: Inconsistent version numbers.

v2.1.1

  • New: Initial publish to GitHub.