/CQRSBestPractice

Applying CQRS & Repository pattern on Rest API with integration testing.

Primary LanguageC#

Instructions

  • Setup the database by changing the details in json file.
  • Functionality can be tested simply by running the tests, without any db integration
  • Setup folder path in log4net.config for logs. Use log4view to view log. ( http://www.log4view.com/log4view/ )

API Requests

GET

POST

PUT

PATCH

[ { "op": "replace", "path": "/LastName", "value":"Kat" } ]


[ { "op": "replace", "path": "/LastName", "value":"Kats" }, { "op": "replace", "path": "/FirstName", "value":"Swat" } ]


[ { "op": "remove", "path": "/LastName" } ]


[ { "op": "add", "path": "/LastName", "value":"Duckling" }, { "op": "copy", "from": "/LastName", "path": "/FirstName" } ]


[ { "op": "remove", "path": "/FirstName" } ]