Morcatko / Morcatko.AspNetCore.JsonMergePatch

JsonMergePatch support for ASP.NET Core
MIT License
88 stars 21 forks source link

Test JsonMergePatchDocument<TModel> ? #60

Closed Benjy96 closed 1 year ago

Benjy96 commented 1 year ago

How to create an instance of this class for unit testing? Using the v6 document package

Morcatko commented 1 year ago

Does this help? => PatchBuilder.Build(patchObject, options);

Benjy96 commented 1 year ago

I am using this: dotnet add package Morcatko.AspNetCore.JsonMergePatch.Document --version 6.0.0

Don't have access to PatchBuilder. Need to import another one of the versions?

Benjy96 commented 1 year ago

Imported the other 2 packages and got PatchBuilder from Newtonsoft version, thanks