v0.3
v0.3.7
Improvements
- All packages include
StyleCop
and a customstylecop.ruleset
now
Library Upgrades
Package | Old Version | New Version |
---|---|---|
StyleCop.Analyzers.Unstable | new | 1.2.0.507 |
v0.3.6
Bugfixes
passSomeTime
parameter was not changingISystem.Now
correctly, fixed
v0.3.5
Improvements
- Added
ScopedWithFactory<T>()
helper for registering scoped services - Added new ServiceSpec extensions:
ADateTime
extension forStubber
ADictionary
extensions forStubber
AnEmail
extension forStubber
ToGuid
extension forstring
- Added
passSomeTime
parameter toMocker.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
andAll
methods now haveTake
andSkip
options
Library Upgrades
Package | Old Version | New Version |
---|---|---|
Microsoft.AspNetCore.Mvc.NewtonsoftJson | 6.0.20 | 6.0.22 |
Moq | 4.18.4 | 4.20.69 |
NHibernate | 5.4.4 | 5.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
andHandledExceptionHandler
for providing a better distinction in results for managed and unmanaged exceptions AddHandler<T>()
extension for exception handling feature is now removed, allIExceptionHandler
implementations should be registered as singleton services from featuresRecordNotFoundException
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 acceptsAction
andAction<TEntity>
where you can give an entity to be updated in a new transactionApplicationContext
KeyNotFoundException
is now more informative- Same
Layer
andFeature
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 fromServiceSpec
ISystem
can now be configured with helpers provided fromServiceSpec
ShouldBeInserted
andShouldBeDeleted
extensions are now added for testing entities- Swagger now renders
enum
asstring
SingleById()
query now throws aRecordNotFoundException
if no matching record is found
Library Upgrades
Package | Old Version | New Version |
---|---|---|
Microsoft.Extensions.Configuration.Abstractions | new | 6.0.0 |
Microsoft.Extensions.Configuration.Binder | new | 6.0.0 |
v0.3.1
Bugfixes
DbType.Object
type was not supported inSQLite
andInMemory
features, fixed.
v0.3.0
Features
- Beta features are available in
do-blueprints-service
package;Documentation
feature is added withDefault
implementation.
Improvements
- Changed Id automaping logic. Now
Guid
properties named asId
are being mapped as Id. - Entity properties of type
object
were not being mapped asMEDIUMTEXT
, fixed. - Swagger schema ID conflict that occurred when two different controllers had a nested class with the same name, fixed.
Searcher
GetMe
is added toSpec
,Searcher
extensions have been added toServiceSpecExtensions
.Url Extensions
andGuid Extensions
are added toServiceSpecExtensions
for generating newUri
andGuid
.