v0.3

v0.3.7

Improvements

  • All packages include StyleCop and a custom stylecop.ruleset now

Library Upgrades

PackageOld VersionNew Version
StyleCop.Analyzers.Unstablenew1.2.0.507

v0.3.6

Bugfixes

  • passSomeTime parameter was not changing ISystem.Now correctly, fixed

v0.3.5

Improvements

  • Added ScopedWithFactory<T>() helper for registering scoped services
  • Added new ServiceSpec extensions:
    • ADateTime extension for Stubber
    • ADictionary extensions for Stubber
    • AnEmail extension for Stubber
    • ToGuid extension for string
  • Added passSomeTime parameter to Mocker.TheSystem extension

v0.3.4

Improvements

  • Enums in responses are returned as string now.
  • Swagger now supports object parameter and return type in endpoints.
  • By and All methods now have Take and Skip options

Library Upgrades

PackageOld VersionNew Version
Microsoft.AspNetCore.Mvc.NewtonsoftJson6.0.206.0.22
Moq4.18.44.20.69
NHibernate5.4.45.4.6

v0.3.3

Improvements

  • Transaction function or action allows task return
  • Add logger services during unit testing
  • Reset mocked singleton services were not setup after reset, fixed
  • Added HandledException and HandledExceptionHandler for providing a better distinction in results for managed and unmanaged exceptions
  • AddHandler<T>() extension for exception handling feature is now removed, all IExceptionHandler implementations should be registered as singleton services from features
  • RecordNotFoundException now returns 404 status code
  • Added an ISetup.Returns() extensions for ordered setup return values of a mock service

v0.3.2

Improvements

  • ITransaction now accepts Action and Action<TEntity> where you can give an entity to be updated in a new transaction
  • ApplicationContext KeyNotFoundException is now more informative
  • Same Layer and Feature can no longer be added multiple times
  • Mocked services which are singleton are now reset during unit test teardown
  • IConfiguration mock is now added and can be configured with helpers provided from ServiceSpec
  • ISystemcan now be configured with helpers provided from ServiceSpec
  • ShouldBeInserted and ShouldBeDeleted extensions are now added for testing entities
  • Swagger now renders enum as string
  • SingleById() query now throws a RecordNotFoundException if no matching record is found

Library Upgrades

PackageOld VersionNew Version
Microsoft.Extensions.Configuration.Abstractionsnew6.0.0
Microsoft.Extensions.Configuration.Bindernew6.0.0

v0.3.1

Bugfixes

  • DbType.Object type was not supported in SQLite and InMemory features, fixed.

v0.3.0

Features

  • Beta features are available in do-blueprints-service package;
    • Documentation feature is added with Default implementation.

Improvements

  • Changed Id automaping logic. Now Guid properties named as Id are being mapped as Id.
  • Entity properties of type object were not being mapped as MEDIUMTEXT, fixed.
  • Swagger schema ID conflict that occurred when two different controllers had a nested class with the same name, fixed.
  • Searcher GetMe is added to Spec, Searcher extensions have been added to ServiceSpecExtensions.
  • Url Extensions and Guid Extensions are added to ServiceSpecExtensions for generating new Uri and Guid.