diff --git a/.husky/pre-commit b/.husky/pre-commit
new file mode 100644
index 0000000..b7807b0
--- /dev/null
+++ b/.husky/pre-commit
@@ -0,0 +1 @@
+npm run format
\ No newline at end of file
diff --git a/Directory.Build.props b/Directory.Build.props
index 07a7487..50b2920 100644
--- a/Directory.Build.props
+++ b/Directory.Build.props
@@ -1,8 +1,45 @@
+
+ net8.0
+ enable
+ enable
+
+
-
-
-
+
+ runtime; build; native; contentfiles; analyzers; buildtransitive
+
+
+ runtime; build; native; contentfiles; analyzers; buildtransitive
+
+
+ runtime; build; native; contentfiles; analyzers; buildtransitive
+
+
+ runtime; build; native; contentfiles; analyzers; buildtransitive
+
+
+ runtime; build; native; contentfiles; analyzers; buildtransitive
+
+
+ runtime; build; native; contentfiles; analyzers; buildtransitive
+
+
+ runtime; build; native; contentfiles; analyzers; buildtransitive
+
+
+ runtime; build; native; contentfiles; analyzers; buildtransitive
+
+
+ runtime; build; native; contentfiles; analyzers; buildtransitive
+
+
+
+ true
+ true
+ All
+
+
diff --git a/commitlint.config.js b/commitlint.config.js
new file mode 100644
index 0000000..308c7f2
--- /dev/null
+++ b/commitlint.config.js
@@ -0,0 +1,3 @@
+module.exports = {
+ extends: ["@commitlint/config-conventional"],
+ }
\ No newline at end of file
diff --git a/global.json b/global.json
index 0c6b103..5cf9689 100644
--- a/global.json
+++ b/global.json
@@ -1,6 +1,6 @@
{
"sdk": {
- "version": "8.0.303",
+ "version": "8.0.401",
"rollForward": "latestFeature"
}
- }
\ No newline at end of file
+ }
diff --git a/package-lock.json b/package-lock.json
new file mode 100644
index 0000000..aa954f2
--- /dev/null
+++ b/package-lock.json
@@ -0,0 +1,1346 @@
+{
+ "name": "booking-microservices",
+ "version": "1.0.0",
+ "lockfileVersion": 3,
+ "requires": true,
+ "packages": {
+ "": {
+ "name": "booking-microservices",
+ "version": "1.0.0",
+ "license": "MIT",
+ "devDependencies": {
+ "@commitlint/cli": "^19.5.0",
+ "@commitlint/config-conventional": "^19.5.0",
+ "husky": "^9.1.6"
+ }
+ },
+ "node_modules/@babel/code-frame": {
+ "version": "7.24.7",
+ "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.24.7.tgz",
+ "integrity": "sha512-BcYH1CVJBO9tvyIZ2jVeXgSIMvGZ2FDRvDdOIVQyuklNKSsx+eppDEBq/g47Ayw+RqNFE+URvOShmf+f/qwAlA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/highlight": "^7.24.7",
+ "picocolors": "^1.0.0"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/helper-validator-identifier": {
+ "version": "7.24.7",
+ "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.24.7.tgz",
+ "integrity": "sha512-rR+PBcQ1SMQDDyF6X0wxtG8QyLCgUB0eRAGguqRLfkCA87l7yAP7ehq8SNj96OOGTO8OBV70KhuFYcIkHXOg0w==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/highlight": {
+ "version": "7.24.7",
+ "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.24.7.tgz",
+ "integrity": "sha512-EStJpq4OuY8xYfhGVXngigBJRWxftKX9ksiGDnmlY3o7B/V7KIAc9X4oiK87uPJSc/vs5L869bem5fhZa8caZw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/helper-validator-identifier": "^7.24.7",
+ "chalk": "^2.4.2",
+ "js-tokens": "^4.0.0",
+ "picocolors": "^1.0.0"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/highlight/node_modules/ansi-styles": {
+ "version": "3.2.1",
+ "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz",
+ "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "color-convert": "^1.9.0"
+ },
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/@babel/highlight/node_modules/chalk": {
+ "version": "2.4.2",
+ "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz",
+ "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "ansi-styles": "^3.2.1",
+ "escape-string-regexp": "^1.0.5",
+ "supports-color": "^5.3.0"
+ },
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/@babel/highlight/node_modules/color-convert": {
+ "version": "1.9.3",
+ "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz",
+ "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "color-name": "1.1.3"
+ }
+ },
+ "node_modules/@babel/highlight/node_modules/color-name": {
+ "version": "1.1.3",
+ "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz",
+ "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/@commitlint/cli": {
+ "version": "19.5.0",
+ "resolved": "https://registry.npmjs.org/@commitlint/cli/-/cli-19.5.0.tgz",
+ "integrity": "sha512-gaGqSliGwB86MDmAAKAtV9SV1SHdmN8pnGq4EJU4+hLisQ7IFfx4jvU4s+pk6tl0+9bv6yT+CaZkufOinkSJIQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@commitlint/format": "^19.5.0",
+ "@commitlint/lint": "^19.5.0",
+ "@commitlint/load": "^19.5.0",
+ "@commitlint/read": "^19.5.0",
+ "@commitlint/types": "^19.5.0",
+ "tinyexec": "^0.3.0",
+ "yargs": "^17.0.0"
+ },
+ "bin": {
+ "commitlint": "cli.js"
+ },
+ "engines": {
+ "node": ">=v18"
+ }
+ },
+ "node_modules/@commitlint/config-conventional": {
+ "version": "19.5.0",
+ "resolved": "https://registry.npmjs.org/@commitlint/config-conventional/-/config-conventional-19.5.0.tgz",
+ "integrity": "sha512-OBhdtJyHNPryZKg0fFpZNOBM1ZDbntMvqMuSmpfyP86XSfwzGw4CaoYRG4RutUPg0BTK07VMRIkNJT6wi2zthg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@commitlint/types": "^19.5.0",
+ "conventional-changelog-conventionalcommits": "^7.0.2"
+ },
+ "engines": {
+ "node": ">=v18"
+ }
+ },
+ "node_modules/@commitlint/config-validator": {
+ "version": "19.5.0",
+ "resolved": "https://registry.npmjs.org/@commitlint/config-validator/-/config-validator-19.5.0.tgz",
+ "integrity": "sha512-CHtj92H5rdhKt17RmgALhfQt95VayrUo2tSqY9g2w+laAXyk7K/Ef6uPm9tn5qSIwSmrLjKaXK9eiNuxmQrDBw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@commitlint/types": "^19.5.0",
+ "ajv": "^8.11.0"
+ },
+ "engines": {
+ "node": ">=v18"
+ }
+ },
+ "node_modules/@commitlint/ensure": {
+ "version": "19.5.0",
+ "resolved": "https://registry.npmjs.org/@commitlint/ensure/-/ensure-19.5.0.tgz",
+ "integrity": "sha512-Kv0pYZeMrdg48bHFEU5KKcccRfKmISSm9MvgIgkpI6m+ohFTB55qZlBW6eYqh/XDfRuIO0x4zSmvBjmOwWTwkg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@commitlint/types": "^19.5.0",
+ "lodash.camelcase": "^4.3.0",
+ "lodash.kebabcase": "^4.1.1",
+ "lodash.snakecase": "^4.1.1",
+ "lodash.startcase": "^4.4.0",
+ "lodash.upperfirst": "^4.3.1"
+ },
+ "engines": {
+ "node": ">=v18"
+ }
+ },
+ "node_modules/@commitlint/execute-rule": {
+ "version": "19.5.0",
+ "resolved": "https://registry.npmjs.org/@commitlint/execute-rule/-/execute-rule-19.5.0.tgz",
+ "integrity": "sha512-aqyGgytXhl2ejlk+/rfgtwpPexYyri4t8/n4ku6rRJoRhGZpLFMqrZ+YaubeGysCP6oz4mMA34YSTaSOKEeNrg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=v18"
+ }
+ },
+ "node_modules/@commitlint/format": {
+ "version": "19.5.0",
+ "resolved": "https://registry.npmjs.org/@commitlint/format/-/format-19.5.0.tgz",
+ "integrity": "sha512-yNy088miE52stCI3dhG/vvxFo9e4jFkU1Mj3xECfzp/bIS/JUay4491huAlVcffOoMK1cd296q0W92NlER6r3A==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@commitlint/types": "^19.5.0",
+ "chalk": "^5.3.0"
+ },
+ "engines": {
+ "node": ">=v18"
+ }
+ },
+ "node_modules/@commitlint/is-ignored": {
+ "version": "19.5.0",
+ "resolved": "https://registry.npmjs.org/@commitlint/is-ignored/-/is-ignored-19.5.0.tgz",
+ "integrity": "sha512-0XQ7Llsf9iL/ANtwyZ6G0NGp5Y3EQ8eDQSxv/SRcfJ0awlBY4tHFAvwWbw66FVUaWICH7iE5en+FD9TQsokZ5w==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@commitlint/types": "^19.5.0",
+ "semver": "^7.6.0"
+ },
+ "engines": {
+ "node": ">=v18"
+ }
+ },
+ "node_modules/@commitlint/lint": {
+ "version": "19.5.0",
+ "resolved": "https://registry.npmjs.org/@commitlint/lint/-/lint-19.5.0.tgz",
+ "integrity": "sha512-cAAQwJcRtiBxQWO0eprrAbOurtJz8U6MgYqLz+p9kLElirzSCc0vGMcyCaA1O7AqBuxo11l1XsY3FhOFowLAAg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@commitlint/is-ignored": "^19.5.0",
+ "@commitlint/parse": "^19.5.0",
+ "@commitlint/rules": "^19.5.0",
+ "@commitlint/types": "^19.5.0"
+ },
+ "engines": {
+ "node": ">=v18"
+ }
+ },
+ "node_modules/@commitlint/load": {
+ "version": "19.5.0",
+ "resolved": "https://registry.npmjs.org/@commitlint/load/-/load-19.5.0.tgz",
+ "integrity": "sha512-INOUhkL/qaKqwcTUvCE8iIUf5XHsEPCLY9looJ/ipzi7jtGhgmtH7OOFiNvwYgH7mA8osUWOUDV8t4E2HAi4xA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@commitlint/config-validator": "^19.5.0",
+ "@commitlint/execute-rule": "^19.5.0",
+ "@commitlint/resolve-extends": "^19.5.0",
+ "@commitlint/types": "^19.5.0",
+ "chalk": "^5.3.0",
+ "cosmiconfig": "^9.0.0",
+ "cosmiconfig-typescript-loader": "^5.0.0",
+ "lodash.isplainobject": "^4.0.6",
+ "lodash.merge": "^4.6.2",
+ "lodash.uniq": "^4.5.0"
+ },
+ "engines": {
+ "node": ">=v18"
+ }
+ },
+ "node_modules/@commitlint/message": {
+ "version": "19.5.0",
+ "resolved": "https://registry.npmjs.org/@commitlint/message/-/message-19.5.0.tgz",
+ "integrity": "sha512-R7AM4YnbxN1Joj1tMfCyBryOC5aNJBdxadTZkuqtWi3Xj0kMdutq16XQwuoGbIzL2Pk62TALV1fZDCv36+JhTQ==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=v18"
+ }
+ },
+ "node_modules/@commitlint/parse": {
+ "version": "19.5.0",
+ "resolved": "https://registry.npmjs.org/@commitlint/parse/-/parse-19.5.0.tgz",
+ "integrity": "sha512-cZ/IxfAlfWYhAQV0TwcbdR1Oc0/r0Ik1GEessDJ3Lbuma/MRO8FRQX76eurcXtmhJC//rj52ZSZuXUg0oIX0Fw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@commitlint/types": "^19.5.0",
+ "conventional-changelog-angular": "^7.0.0",
+ "conventional-commits-parser": "^5.0.0"
+ },
+ "engines": {
+ "node": ">=v18"
+ }
+ },
+ "node_modules/@commitlint/read": {
+ "version": "19.5.0",
+ "resolved": "https://registry.npmjs.org/@commitlint/read/-/read-19.5.0.tgz",
+ "integrity": "sha512-TjS3HLPsLsxFPQj6jou8/CZFAmOP2y+6V4PGYt3ihbQKTY1Jnv0QG28WRKl/d1ha6zLODPZqsxLEov52dhR9BQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@commitlint/top-level": "^19.5.0",
+ "@commitlint/types": "^19.5.0",
+ "git-raw-commits": "^4.0.0",
+ "minimist": "^1.2.8",
+ "tinyexec": "^0.3.0"
+ },
+ "engines": {
+ "node": ">=v18"
+ }
+ },
+ "node_modules/@commitlint/resolve-extends": {
+ "version": "19.5.0",
+ "resolved": "https://registry.npmjs.org/@commitlint/resolve-extends/-/resolve-extends-19.5.0.tgz",
+ "integrity": "sha512-CU/GscZhCUsJwcKTJS9Ndh3AKGZTNFIOoQB2n8CmFnizE0VnEuJoum+COW+C1lNABEeqk6ssfc1Kkalm4bDklA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@commitlint/config-validator": "^19.5.0",
+ "@commitlint/types": "^19.5.0",
+ "global-directory": "^4.0.1",
+ "import-meta-resolve": "^4.0.0",
+ "lodash.mergewith": "^4.6.2",
+ "resolve-from": "^5.0.0"
+ },
+ "engines": {
+ "node": ">=v18"
+ }
+ },
+ "node_modules/@commitlint/rules": {
+ "version": "19.5.0",
+ "resolved": "https://registry.npmjs.org/@commitlint/rules/-/rules-19.5.0.tgz",
+ "integrity": "sha512-hDW5TPyf/h1/EufSHEKSp6Hs+YVsDMHazfJ2azIk9tHPXS6UqSz1dIRs1gpqS3eMXgtkT7JH6TW4IShdqOwhAw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@commitlint/ensure": "^19.5.0",
+ "@commitlint/message": "^19.5.0",
+ "@commitlint/to-lines": "^19.5.0",
+ "@commitlint/types": "^19.5.0"
+ },
+ "engines": {
+ "node": ">=v18"
+ }
+ },
+ "node_modules/@commitlint/to-lines": {
+ "version": "19.5.0",
+ "resolved": "https://registry.npmjs.org/@commitlint/to-lines/-/to-lines-19.5.0.tgz",
+ "integrity": "sha512-R772oj3NHPkodOSRZ9bBVNq224DOxQtNef5Pl8l2M8ZnkkzQfeSTr4uxawV2Sd3ui05dUVzvLNnzenDBO1KBeQ==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=v18"
+ }
+ },
+ "node_modules/@commitlint/top-level": {
+ "version": "19.5.0",
+ "resolved": "https://registry.npmjs.org/@commitlint/top-level/-/top-level-19.5.0.tgz",
+ "integrity": "sha512-IP1YLmGAk0yWrImPRRc578I3dDUI5A2UBJx9FbSOjxe9sTlzFiwVJ+zeMLgAtHMtGZsC8LUnzmW1qRemkFU4ng==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "find-up": "^7.0.0"
+ },
+ "engines": {
+ "node": ">=v18"
+ }
+ },
+ "node_modules/@commitlint/types": {
+ "version": "19.5.0",
+ "resolved": "https://registry.npmjs.org/@commitlint/types/-/types-19.5.0.tgz",
+ "integrity": "sha512-DSHae2obMSMkAtTBSOulg5X7/z+rGLxcXQIkg3OmWvY6wifojge5uVMydfhUvs7yQj+V7jNmRZ2Xzl8GJyqRgg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@types/conventional-commits-parser": "^5.0.0",
+ "chalk": "^5.3.0"
+ },
+ "engines": {
+ "node": ">=v18"
+ }
+ },
+ "node_modules/@types/conventional-commits-parser": {
+ "version": "5.0.0",
+ "resolved": "https://registry.npmjs.org/@types/conventional-commits-parser/-/conventional-commits-parser-5.0.0.tgz",
+ "integrity": "sha512-loB369iXNmAZglwWATL+WRe+CRMmmBPtpolYzIebFaX4YA3x+BEfLqhUAV9WanycKI3TG1IMr5bMJDajDKLlUQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@types/node": "*"
+ }
+ },
+ "node_modules/@types/node": {
+ "version": "22.5.5",
+ "resolved": "https://registry.npmjs.org/@types/node/-/node-22.5.5.tgz",
+ "integrity": "sha512-Xjs4y5UPO/CLdzpgR6GirZJx36yScjh73+2NlLlkFRSoQN8B0DpfXPdZGnvVmLRLOsqDpOfTNv7D9trgGhmOIA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "undici-types": "~6.19.2"
+ }
+ },
+ "node_modules/ajv": {
+ "version": "8.17.1",
+ "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.17.1.tgz",
+ "integrity": "sha512-B/gBuNg5SiMTrPkC+A2+cW0RszwxYmn6VYxB/inlBStS5nx6xHIt/ehKRhIMhqusl7a8LjQoZnjCs5vhwxOQ1g==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "fast-deep-equal": "^3.1.3",
+ "fast-uri": "^3.0.1",
+ "json-schema-traverse": "^1.0.0",
+ "require-from-string": "^2.0.2"
+ },
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/epoberezkin"
+ }
+ },
+ "node_modules/ansi-regex": {
+ "version": "5.0.1",
+ "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz",
+ "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/ansi-styles": {
+ "version": "4.3.0",
+ "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",
+ "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "color-convert": "^2.0.1"
+ },
+ "engines": {
+ "node": ">=8"
+ },
+ "funding": {
+ "url": "https://github.com/chalk/ansi-styles?sponsor=1"
+ }
+ },
+ "node_modules/argparse": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz",
+ "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==",
+ "dev": true,
+ "license": "Python-2.0"
+ },
+ "node_modules/array-ify": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/array-ify/-/array-ify-1.0.0.tgz",
+ "integrity": "sha512-c5AMf34bKdvPhQ7tBGhqkgKNUzMr4WUs+WDtC2ZUGOUncbxKMTvqxYctiseW3+L4bA8ec+GcZ6/A/FW4m8ukng==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/callsites": {
+ "version": "3.1.0",
+ "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz",
+ "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/chalk": {
+ "version": "5.3.0",
+ "resolved": "https://registry.npmjs.org/chalk/-/chalk-5.3.0.tgz",
+ "integrity": "sha512-dLitG79d+GV1Nb/VYcCDFivJeK1hiukt9QjRNVOsUtTy1rR1YJsmpGGTZ3qJos+uw7WmWF4wUwBd9jxjocFC2w==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": "^12.17.0 || ^14.13 || >=16.0.0"
+ },
+ "funding": {
+ "url": "https://github.com/chalk/chalk?sponsor=1"
+ }
+ },
+ "node_modules/cliui": {
+ "version": "8.0.1",
+ "resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz",
+ "integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "string-width": "^4.2.0",
+ "strip-ansi": "^6.0.1",
+ "wrap-ansi": "^7.0.0"
+ },
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/color-convert": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
+ "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "color-name": "~1.1.4"
+ },
+ "engines": {
+ "node": ">=7.0.0"
+ }
+ },
+ "node_modules/color-name": {
+ "version": "1.1.4",
+ "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
+ "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/compare-func": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/compare-func/-/compare-func-2.0.0.tgz",
+ "integrity": "sha512-zHig5N+tPWARooBnb0Zx1MFcdfpyJrfTJ3Y5L+IFvUm8rM74hHz66z0gw0x4tijh5CorKkKUCnW82R2vmpeCRA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "array-ify": "^1.0.0",
+ "dot-prop": "^5.1.0"
+ }
+ },
+ "node_modules/conventional-changelog-angular": {
+ "version": "7.0.0",
+ "resolved": "https://registry.npmjs.org/conventional-changelog-angular/-/conventional-changelog-angular-7.0.0.tgz",
+ "integrity": "sha512-ROjNchA9LgfNMTTFSIWPzebCwOGFdgkEq45EnvvrmSLvCtAw0HSmrCs7/ty+wAeYUZyNay0YMUNYFTRL72PkBQ==",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "compare-func": "^2.0.0"
+ },
+ "engines": {
+ "node": ">=16"
+ }
+ },
+ "node_modules/conventional-changelog-conventionalcommits": {
+ "version": "7.0.2",
+ "resolved": "https://registry.npmjs.org/conventional-changelog-conventionalcommits/-/conventional-changelog-conventionalcommits-7.0.2.tgz",
+ "integrity": "sha512-NKXYmMR/Hr1DevQegFB4MwfM5Vv0m4UIxKZTTYuD98lpTknaZlSRrDOG4X7wIXpGkfsYxZTghUN+Qq+T0YQI7w==",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "compare-func": "^2.0.0"
+ },
+ "engines": {
+ "node": ">=16"
+ }
+ },
+ "node_modules/conventional-commits-parser": {
+ "version": "5.0.0",
+ "resolved": "https://registry.npmjs.org/conventional-commits-parser/-/conventional-commits-parser-5.0.0.tgz",
+ "integrity": "sha512-ZPMl0ZJbw74iS9LuX9YIAiW8pfM5p3yh2o/NbXHbkFuZzY5jvdi5jFycEOkmBW5H5I7nA+D6f3UcsCLP2vvSEA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "is-text-path": "^2.0.0",
+ "JSONStream": "^1.3.5",
+ "meow": "^12.0.1",
+ "split2": "^4.0.0"
+ },
+ "bin": {
+ "conventional-commits-parser": "cli.mjs"
+ },
+ "engines": {
+ "node": ">=16"
+ }
+ },
+ "node_modules/cosmiconfig": {
+ "version": "9.0.0",
+ "resolved": "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-9.0.0.tgz",
+ "integrity": "sha512-itvL5h8RETACmOTFc4UfIyB2RfEHi71Ax6E/PivVxq9NseKbOWpeyHEOIbmAw1rs8Ak0VursQNww7lf7YtUwzg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "env-paths": "^2.2.1",
+ "import-fresh": "^3.3.0",
+ "js-yaml": "^4.1.0",
+ "parse-json": "^5.2.0"
+ },
+ "engines": {
+ "node": ">=14"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/d-fischer"
+ },
+ "peerDependencies": {
+ "typescript": ">=4.9.5"
+ },
+ "peerDependenciesMeta": {
+ "typescript": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/cosmiconfig-typescript-loader": {
+ "version": "5.0.0",
+ "resolved": "https://registry.npmjs.org/cosmiconfig-typescript-loader/-/cosmiconfig-typescript-loader-5.0.0.tgz",
+ "integrity": "sha512-+8cK7jRAReYkMwMiG+bxhcNKiHJDM6bR9FD/nGBXOWdMLuYawjF5cGrtLilJ+LGd3ZjCXnJjR5DkfWPoIVlqJA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "jiti": "^1.19.1"
+ },
+ "engines": {
+ "node": ">=v16"
+ },
+ "peerDependencies": {
+ "@types/node": "*",
+ "cosmiconfig": ">=8.2",
+ "typescript": ">=4"
+ }
+ },
+ "node_modules/dargs": {
+ "version": "8.1.0",
+ "resolved": "https://registry.npmjs.org/dargs/-/dargs-8.1.0.tgz",
+ "integrity": "sha512-wAV9QHOsNbwnWdNW2FYvE1P56wtgSbM+3SZcdGiWQILwVjACCXDCI3Ai8QlCjMDB8YK5zySiXZYBiwGmNY3lnw==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=12"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/dot-prop": {
+ "version": "5.3.0",
+ "resolved": "https://registry.npmjs.org/dot-prop/-/dot-prop-5.3.0.tgz",
+ "integrity": "sha512-QM8q3zDe58hqUqjraQOmzZ1LIH9SWQJTlEKCH4kJ2oQvLZk7RbQXvtDM2XEq3fwkV9CCvvH4LA0AV+ogFsBM2Q==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "is-obj": "^2.0.0"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/emoji-regex": {
+ "version": "8.0.0",
+ "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz",
+ "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/env-paths": {
+ "version": "2.2.1",
+ "resolved": "https://registry.npmjs.org/env-paths/-/env-paths-2.2.1.tgz",
+ "integrity": "sha512-+h1lkLKhZMTYjog1VEpJNG7NZJWcuc2DDk/qsqSTRRCOXiLjeQ1d1/udrUGhqMxUgAlwKNZ0cf2uqan5GLuS2A==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/error-ex": {
+ "version": "1.3.2",
+ "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz",
+ "integrity": "sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "is-arrayish": "^0.2.1"
+ }
+ },
+ "node_modules/escalade": {
+ "version": "3.2.0",
+ "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz",
+ "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/escape-string-regexp": {
+ "version": "1.0.5",
+ "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz",
+ "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.8.0"
+ }
+ },
+ "node_modules/fast-deep-equal": {
+ "version": "3.1.3",
+ "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz",
+ "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/fast-uri": {
+ "version": "3.0.1",
+ "resolved": "https://registry.npmjs.org/fast-uri/-/fast-uri-3.0.1.tgz",
+ "integrity": "sha512-MWipKbbYiYI0UC7cl8m/i/IWTqfC8YXsqjzybjddLsFjStroQzsHXkc73JutMvBiXmOvapk+axIl79ig5t55Bw==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/find-up": {
+ "version": "7.0.0",
+ "resolved": "https://registry.npmjs.org/find-up/-/find-up-7.0.0.tgz",
+ "integrity": "sha512-YyZM99iHrqLKjmt4LJDj58KI+fYyufRLBSYcqycxf//KpBk9FoewoGX0450m9nB44qrZnovzC2oeP5hUibxc/g==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "locate-path": "^7.2.0",
+ "path-exists": "^5.0.0",
+ "unicorn-magic": "^0.1.0"
+ },
+ "engines": {
+ "node": ">=18"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/get-caller-file": {
+ "version": "2.0.5",
+ "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz",
+ "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==",
+ "dev": true,
+ "license": "ISC",
+ "engines": {
+ "node": "6.* || 8.* || >= 10.*"
+ }
+ },
+ "node_modules/git-raw-commits": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/git-raw-commits/-/git-raw-commits-4.0.0.tgz",
+ "integrity": "sha512-ICsMM1Wk8xSGMowkOmPrzo2Fgmfo4bMHLNX6ytHjajRJUqvHOw/TFapQ+QG75c3X/tTDDhOSRPGC52dDbNM8FQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "dargs": "^8.0.0",
+ "meow": "^12.0.1",
+ "split2": "^4.0.0"
+ },
+ "bin": {
+ "git-raw-commits": "cli.mjs"
+ },
+ "engines": {
+ "node": ">=16"
+ }
+ },
+ "node_modules/global-directory": {
+ "version": "4.0.1",
+ "resolved": "https://registry.npmjs.org/global-directory/-/global-directory-4.0.1.tgz",
+ "integrity": "sha512-wHTUcDUoZ1H5/0iVqEudYW4/kAlN5cZ3j/bXn0Dpbizl9iaUVeWSHqiOjsgk6OW2bkLclbBjzewBz6weQ1zA2Q==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "ini": "4.1.1"
+ },
+ "engines": {
+ "node": ">=18"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/has-flag": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz",
+ "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/husky": {
+ "version": "9.1.6",
+ "resolved": "https://registry.npmjs.org/husky/-/husky-9.1.6.tgz",
+ "integrity": "sha512-sqbjZKK7kf44hfdE94EoX8MZNk0n7HeW37O4YrVGCF4wzgQjp+akPAkfUK5LZ6KuR/6sqeAVuXHji+RzQgOn5A==",
+ "dev": true,
+ "license": "MIT",
+ "bin": {
+ "husky": "bin.js"
+ },
+ "engines": {
+ "node": ">=18"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/typicode"
+ }
+ },
+ "node_modules/import-fresh": {
+ "version": "3.3.0",
+ "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.0.tgz",
+ "integrity": "sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "parent-module": "^1.0.0",
+ "resolve-from": "^4.0.0"
+ },
+ "engines": {
+ "node": ">=6"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/import-fresh/node_modules/resolve-from": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz",
+ "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/import-meta-resolve": {
+ "version": "4.1.0",
+ "resolved": "https://registry.npmjs.org/import-meta-resolve/-/import-meta-resolve-4.1.0.tgz",
+ "integrity": "sha512-I6fiaX09Xivtk+THaMfAwnA3MVA5Big1WHF1Dfx9hFuvNIWpXnorlkzhcQf6ehrqQiiZECRt1poOAkPmer3ruw==",
+ "dev": true,
+ "license": "MIT",
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/wooorm"
+ }
+ },
+ "node_modules/ini": {
+ "version": "4.1.1",
+ "resolved": "https://registry.npmjs.org/ini/-/ini-4.1.1.tgz",
+ "integrity": "sha512-QQnnxNyfvmHFIsj7gkPcYymR8Jdw/o7mp5ZFihxn6h8Ci6fh3Dx4E1gPjpQEpIuPo9XVNY/ZUwh4BPMjGyL01g==",
+ "dev": true,
+ "license": "ISC",
+ "engines": {
+ "node": "^14.17.0 || ^16.13.0 || >=18.0.0"
+ }
+ },
+ "node_modules/is-arrayish": {
+ "version": "0.2.1",
+ "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz",
+ "integrity": "sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/is-fullwidth-code-point": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz",
+ "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/is-obj": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/is-obj/-/is-obj-2.0.0.tgz",
+ "integrity": "sha512-drqDG3cbczxxEJRoOXcOjtdp1J/lyp1mNn0xaznRs8+muBhgQcrnbspox5X5fOw0HnMnbfDzvnEMEtqDEJEo8w==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/is-text-path": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/is-text-path/-/is-text-path-2.0.0.tgz",
+ "integrity": "sha512-+oDTluR6WEjdXEJMnC2z6A4FRwFoYuvShVVEGsS7ewc0UTi2QtAKMDJuL4BDEVt+5T7MjFo12RP8ghOM75oKJw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "text-extensions": "^2.0.0"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/jiti": {
+ "version": "1.21.6",
+ "resolved": "https://registry.npmjs.org/jiti/-/jiti-1.21.6.tgz",
+ "integrity": "sha512-2yTgeWTWzMWkHu6Jp9NKgePDaYHbntiwvYuuJLbbN9vl7DC9DvXKOB2BC3ZZ92D3cvV/aflH0osDfwpHepQ53w==",
+ "dev": true,
+ "license": "MIT",
+ "bin": {
+ "jiti": "bin/jiti.js"
+ }
+ },
+ "node_modules/js-tokens": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz",
+ "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/js-yaml": {
+ "version": "4.1.0",
+ "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz",
+ "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "argparse": "^2.0.1"
+ },
+ "bin": {
+ "js-yaml": "bin/js-yaml.js"
+ }
+ },
+ "node_modules/json-parse-even-better-errors": {
+ "version": "2.3.1",
+ "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz",
+ "integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/json-schema-traverse": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz",
+ "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/jsonparse": {
+ "version": "1.3.1",
+ "resolved": "https://registry.npmjs.org/jsonparse/-/jsonparse-1.3.1.tgz",
+ "integrity": "sha512-POQXvpdL69+CluYsillJ7SUhKvytYjW9vG/GKpnf+xP8UWgYEM/RaMzHHofbALDiKbbP1W8UEYmgGl39WkPZsg==",
+ "dev": true,
+ "engines": [
+ "node >= 0.2.0"
+ ],
+ "license": "MIT"
+ },
+ "node_modules/JSONStream": {
+ "version": "1.3.5",
+ "resolved": "https://registry.npmjs.org/JSONStream/-/JSONStream-1.3.5.tgz",
+ "integrity": "sha512-E+iruNOY8VV9s4JEbe1aNEm6MiszPRr/UfcHMz0TQh1BXSxHK+ASV1R6W4HpjBhSeS+54PIsAMCBmwD06LLsqQ==",
+ "dev": true,
+ "license": "(MIT OR Apache-2.0)",
+ "dependencies": {
+ "jsonparse": "^1.2.0",
+ "through": ">=2.2.7 <3"
+ },
+ "bin": {
+ "JSONStream": "bin.js"
+ },
+ "engines": {
+ "node": "*"
+ }
+ },
+ "node_modules/lines-and-columns": {
+ "version": "1.2.4",
+ "resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.2.4.tgz",
+ "integrity": "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/locate-path": {
+ "version": "7.2.0",
+ "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-7.2.0.tgz",
+ "integrity": "sha512-gvVijfZvn7R+2qyPX8mAuKcFGDf6Nc61GdvGafQsHL0sBIxfKzA+usWn4GFC/bk+QdwPUD4kWFJLhElipq+0VA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "p-locate": "^6.0.0"
+ },
+ "engines": {
+ "node": "^12.20.0 || ^14.13.1 || >=16.0.0"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/lodash.camelcase": {
+ "version": "4.3.0",
+ "resolved": "https://registry.npmjs.org/lodash.camelcase/-/lodash.camelcase-4.3.0.tgz",
+ "integrity": "sha512-TwuEnCnxbc3rAvhf/LbG7tJUDzhqXyFnv3dtzLOPgCG/hODL7WFnsbwktkD7yUV0RrreP/l1PALq/YSg6VvjlA==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/lodash.isplainobject": {
+ "version": "4.0.6",
+ "resolved": "https://registry.npmjs.org/lodash.isplainobject/-/lodash.isplainobject-4.0.6.tgz",
+ "integrity": "sha512-oSXzaWypCMHkPC3NvBEaPHf0KsA5mvPrOPgQWDsbg8n7orZ290M0BmC/jgRZ4vcJ6DTAhjrsSYgdsW/F+MFOBA==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/lodash.kebabcase": {
+ "version": "4.1.1",
+ "resolved": "https://registry.npmjs.org/lodash.kebabcase/-/lodash.kebabcase-4.1.1.tgz",
+ "integrity": "sha512-N8XRTIMMqqDgSy4VLKPnJ/+hpGZN+PHQiJnSenYqPaVV/NCqEogTnAdZLQiGKhxX+JCs8waWq2t1XHWKOmlY8g==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/lodash.merge": {
+ "version": "4.6.2",
+ "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz",
+ "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/lodash.mergewith": {
+ "version": "4.6.2",
+ "resolved": "https://registry.npmjs.org/lodash.mergewith/-/lodash.mergewith-4.6.2.tgz",
+ "integrity": "sha512-GK3g5RPZWTRSeLSpgP8Xhra+pnjBC56q9FZYe1d5RN3TJ35dbkGy3YqBSMbyCrlbi+CM9Z3Jk5yTL7RCsqboyQ==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/lodash.snakecase": {
+ "version": "4.1.1",
+ "resolved": "https://registry.npmjs.org/lodash.snakecase/-/lodash.snakecase-4.1.1.tgz",
+ "integrity": "sha512-QZ1d4xoBHYUeuouhEq3lk3Uq7ldgyFXGBhg04+oRLnIz8o9T65Eh+8YdroUwn846zchkA9yDsDl5CVVaV2nqYw==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/lodash.startcase": {
+ "version": "4.4.0",
+ "resolved": "https://registry.npmjs.org/lodash.startcase/-/lodash.startcase-4.4.0.tgz",
+ "integrity": "sha512-+WKqsK294HMSc2jEbNgpHpd0JfIBhp7rEV4aqXWqFr6AlXov+SlcgB1Fv01y2kGe3Gc8nMW7VA0SrGuSkRfIEg==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/lodash.uniq": {
+ "version": "4.5.0",
+ "resolved": "https://registry.npmjs.org/lodash.uniq/-/lodash.uniq-4.5.0.tgz",
+ "integrity": "sha512-xfBaXQd9ryd9dlSDvnvI0lvxfLJlYAZzXomUYzLKtUeOQvOP5piqAWuGtrhWeqaXK9hhoM/iyJc5AV+XfsX3HQ==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/lodash.upperfirst": {
+ "version": "4.3.1",
+ "resolved": "https://registry.npmjs.org/lodash.upperfirst/-/lodash.upperfirst-4.3.1.tgz",
+ "integrity": "sha512-sReKOYJIJf74dhJONhU4e0/shzi1trVbSWDOhKYE5XV2O+H7Sb2Dihwuc7xWxVl+DgFPyTqIN3zMfT9cq5iWDg==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/meow": {
+ "version": "12.1.1",
+ "resolved": "https://registry.npmjs.org/meow/-/meow-12.1.1.tgz",
+ "integrity": "sha512-BhXM0Au22RwUneMPwSCnyhTOizdWoIEPU9sp0Aqa1PnDMR5Wv2FGXYDjuzJEIX+Eo2Rb8xuYe5jrnm5QowQFkw==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=16.10"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/minimist": {
+ "version": "1.2.8",
+ "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz",
+ "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==",
+ "dev": true,
+ "license": "MIT",
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/p-limit": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-4.0.0.tgz",
+ "integrity": "sha512-5b0R4txpzjPWVw/cXXUResoD4hb6U/x9BH08L7nw+GN1sezDzPdxeRvpc9c433fZhBan/wusjbCsqwqm4EIBIQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "yocto-queue": "^1.0.0"
+ },
+ "engines": {
+ "node": "^12.20.0 || ^14.13.1 || >=16.0.0"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/p-locate": {
+ "version": "6.0.0",
+ "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-6.0.0.tgz",
+ "integrity": "sha512-wPrq66Llhl7/4AGC6I+cqxT07LhXvWL08LNXz1fENOw0Ap4sRZZ/gZpTTJ5jpurzzzfS2W/Ge9BY3LgLjCShcw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "p-limit": "^4.0.0"
+ },
+ "engines": {
+ "node": "^12.20.0 || ^14.13.1 || >=16.0.0"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/parent-module": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz",
+ "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "callsites": "^3.0.0"
+ },
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/parse-json": {
+ "version": "5.2.0",
+ "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.2.0.tgz",
+ "integrity": "sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/code-frame": "^7.0.0",
+ "error-ex": "^1.3.1",
+ "json-parse-even-better-errors": "^2.3.0",
+ "lines-and-columns": "^1.1.6"
+ },
+ "engines": {
+ "node": ">=8"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/path-exists": {
+ "version": "5.0.0",
+ "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-5.0.0.tgz",
+ "integrity": "sha512-RjhtfwJOxzcFmNOi6ltcbcu4Iu+FL3zEj83dk4kAS+fVpTxXLO1b38RvJgT/0QwvV/L3aY9TAnyv0EOqW4GoMQ==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": "^12.20.0 || ^14.13.1 || >=16.0.0"
+ }
+ },
+ "node_modules/picocolors": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.0.tgz",
+ "integrity": "sha512-TQ92mBOW0l3LeMeyLV6mzy/kWr8lkd/hp3mTg7wYK7zJhuBStmGMBG0BdeDZS/dZx1IukaX6Bk11zcln25o1Aw==",
+ "dev": true,
+ "license": "ISC"
+ },
+ "node_modules/require-directory": {
+ "version": "2.1.1",
+ "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz",
+ "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/require-from-string": {
+ "version": "2.0.2",
+ "resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz",
+ "integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/resolve-from": {
+ "version": "5.0.0",
+ "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz",
+ "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/semver": {
+ "version": "7.6.3",
+ "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.3.tgz",
+ "integrity": "sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A==",
+ "dev": true,
+ "license": "ISC",
+ "bin": {
+ "semver": "bin/semver.js"
+ },
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/split2": {
+ "version": "4.2.0",
+ "resolved": "https://registry.npmjs.org/split2/-/split2-4.2.0.tgz",
+ "integrity": "sha512-UcjcJOWknrNkF6PLX83qcHM6KHgVKNkV62Y8a5uYDVv9ydGQVwAHMKqHdJje1VTWpljG0WYpCDhrCdAOYH4TWg==",
+ "dev": true,
+ "license": "ISC",
+ "engines": {
+ "node": ">= 10.x"
+ }
+ },
+ "node_modules/string-width": {
+ "version": "4.2.3",
+ "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz",
+ "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "emoji-regex": "^8.0.0",
+ "is-fullwidth-code-point": "^3.0.0",
+ "strip-ansi": "^6.0.1"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/strip-ansi": {
+ "version": "6.0.1",
+ "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz",
+ "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "ansi-regex": "^5.0.1"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/supports-color": {
+ "version": "5.5.0",
+ "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz",
+ "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "has-flag": "^3.0.0"
+ },
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/text-extensions": {
+ "version": "2.4.0",
+ "resolved": "https://registry.npmjs.org/text-extensions/-/text-extensions-2.4.0.tgz",
+ "integrity": "sha512-te/NtwBwfiNRLf9Ijqx3T0nlqZiQ2XrrtBvu+cLL8ZRrGkO0NHTug8MYFKyoSrv/sHTaSKfilUkizV6XhxMJ3g==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/through": {
+ "version": "2.3.8",
+ "resolved": "https://registry.npmjs.org/through/-/through-2.3.8.tgz",
+ "integrity": "sha512-w89qg7PI8wAdvX60bMDP+bFoD5Dvhm9oLheFp5O4a2QF0cSBGsBX4qZmadPMvVqlLJBBci+WqGGOAPvcDeNSVg==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/tinyexec": {
+ "version": "0.3.0",
+ "resolved": "https://registry.npmjs.org/tinyexec/-/tinyexec-0.3.0.tgz",
+ "integrity": "sha512-tVGE0mVJPGb0chKhqmsoosjsS+qUnJVGJpZgsHYQcGoPlG3B51R3PouqTgEGH2Dc9jjFyOqOpix6ZHNMXp1FZg==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/typescript": {
+ "version": "5.6.2",
+ "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.6.2.tgz",
+ "integrity": "sha512-NW8ByodCSNCwZeghjN3o+JX5OFH0Ojg6sadjEKY4huZ52TqbJTJnDo5+Tw98lSy63NZvi4n+ez5m2u5d4PkZyw==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "peer": true,
+ "bin": {
+ "tsc": "bin/tsc",
+ "tsserver": "bin/tsserver"
+ },
+ "engines": {
+ "node": ">=14.17"
+ }
+ },
+ "node_modules/undici-types": {
+ "version": "6.19.8",
+ "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.19.8.tgz",
+ "integrity": "sha512-ve2KP6f/JnbPBFyobGHuerC9g1FYGn/F8n1LWTwNxCEzd6IfqTwUQcNXgEtmmQ6DlRrC1hrSrBnCZPokRrDHjw==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/unicorn-magic": {
+ "version": "0.1.0",
+ "resolved": "https://registry.npmjs.org/unicorn-magic/-/unicorn-magic-0.1.0.tgz",
+ "integrity": "sha512-lRfVq8fE8gz6QMBuDM6a+LO3IAzTi05H6gCVaUpir2E1Rwpo4ZUog45KpNXKC/Mn3Yb9UDuHumeFTo9iV/D9FQ==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=18"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/wrap-ansi": {
+ "version": "7.0.0",
+ "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz",
+ "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "ansi-styles": "^4.0.0",
+ "string-width": "^4.1.0",
+ "strip-ansi": "^6.0.0"
+ },
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/chalk/wrap-ansi?sponsor=1"
+ }
+ },
+ "node_modules/y18n": {
+ "version": "5.0.8",
+ "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz",
+ "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==",
+ "dev": true,
+ "license": "ISC",
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/yargs": {
+ "version": "17.7.2",
+ "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.2.tgz",
+ "integrity": "sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "cliui": "^8.0.1",
+ "escalade": "^3.1.1",
+ "get-caller-file": "^2.0.5",
+ "require-directory": "^2.1.1",
+ "string-width": "^4.2.3",
+ "y18n": "^5.0.5",
+ "yargs-parser": "^21.1.1"
+ },
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/yargs-parser": {
+ "version": "21.1.1",
+ "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz",
+ "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==",
+ "dev": true,
+ "license": "ISC",
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/yocto-queue": {
+ "version": "1.1.1",
+ "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-1.1.1.tgz",
+ "integrity": "sha512-b4JR1PFR10y1mKjhHY9LaGo6tmrgjit7hxVIeAmyMw3jegXR4dhYqLaQF5zMXZxY7tLpMyJeLjr1C4rLmkVe8g==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=12.20"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ }
+ }
+}
diff --git a/package.json b/package.json
new file mode 100644
index 0000000..8653417
--- /dev/null
+++ b/package.json
@@ -0,0 +1,18 @@
+{
+ "name": "booking-microservices",
+ "version": "1.0.0",
+ "description": "",
+ "author": "Meysam Hadeli",
+ "license": "MIT",
+ "main": "index.js",
+ "scripts": {
+ "prepare": "husky && dotnet tool restore",
+ "format": "dotnet format booking-microservices-sample.sln --severity error --verbosity detailed",
+ "upgrade-packages": "dotnet outdated --upgrade"
+ },
+ "devDependencies": {
+ "@commitlint/cli": "^19.5.0",
+ "@commitlint/config-conventional": "^19.5.0",
+ "husky": "^9.1.6"
+ }
+}
diff --git a/src/BuildingBlocks/BuildingBlocks.csproj b/src/BuildingBlocks/BuildingBlocks.csproj
index 32abdc1..2e40368 100644
--- a/src/BuildingBlocks/BuildingBlocks.csproj
+++ b/src/BuildingBlocks/BuildingBlocks.csproj
@@ -1,39 +1,32 @@
-
-
- net8.0
- enable
- enable
-
-
-
-
+
+
-
-
+
+
-
+
-
+
-
-
+
+
-
+
@@ -42,25 +35,25 @@
-
-
-
-
-
+
+
+
+
+
-
+
-
+
-
-
+
+
@@ -70,25 +63,25 @@
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
+
+
+
+
+
-
+
@@ -99,30 +92,19 @@
-
+
-
-
+
+
-
-
+
+
-
-
-
-
- runtime; build; native; contentfiles; analyzers; buildtransitive
- all
-
-
-
-
-
-
-
+
+
diff --git a/src/BuildingBlocks/Caching/CachingBehavior.cs b/src/BuildingBlocks/Caching/CachingBehavior.cs
index 46e5de2..231ee39 100644
--- a/src/BuildingBlocks/Caching/CachingBehavior.cs
+++ b/src/BuildingBlocks/Caching/CachingBehavior.cs
@@ -1,4 +1,4 @@
-using EasyCaching.Core;
+using EasyCaching.Core;
using MediatR;
using Microsoft.Extensions.Logging;
diff --git a/src/BuildingBlocks/Core/CQRS/ICommand.cs b/src/BuildingBlocks/Core/CQRS/ICommand.cs
index a70656d..88a639c 100644
--- a/src/BuildingBlocks/Core/CQRS/ICommand.cs
+++ b/src/BuildingBlocks/Core/CQRS/ICommand.cs
@@ -1,4 +1,4 @@
-using MediatR;
+using MediatR;
namespace BuildingBlocks.Core.CQRS;
diff --git a/src/BuildingBlocks/Core/CQRS/ICommandHandler.cs b/src/BuildingBlocks/Core/CQRS/ICommandHandler.cs
index 0dd760a..e5e16cf 100644
--- a/src/BuildingBlocks/Core/CQRS/ICommandHandler.cs
+++ b/src/BuildingBlocks/Core/CQRS/ICommandHandler.cs
@@ -1,4 +1,4 @@
-using MediatR;
+using MediatR;
namespace BuildingBlocks.Core.CQRS;
diff --git a/src/BuildingBlocks/Core/CQRS/IQuery.cs b/src/BuildingBlocks/Core/CQRS/IQuery.cs
index b967f92..2cd55d9 100644
--- a/src/BuildingBlocks/Core/CQRS/IQuery.cs
+++ b/src/BuildingBlocks/Core/CQRS/IQuery.cs
@@ -1,4 +1,4 @@
-using MediatR;
+using MediatR;
namespace BuildingBlocks.Core.CQRS;
diff --git a/src/BuildingBlocks/Core/CQRS/IQueryHandler.cs b/src/BuildingBlocks/Core/CQRS/IQueryHandler.cs
index cd1a7e9..3e4b261 100644
--- a/src/BuildingBlocks/Core/CQRS/IQueryHandler.cs
+++ b/src/BuildingBlocks/Core/CQRS/IQueryHandler.cs
@@ -1,4 +1,4 @@
-using MediatR;
+using MediatR;
namespace BuildingBlocks.Core.CQRS;
diff --git a/src/BuildingBlocks/Core/Event/IHaveIntegrationEvent.cs b/src/BuildingBlocks/Core/Event/IHaveIntegrationEvent.cs
index ecaf3d4..7ec03a6 100644
--- a/src/BuildingBlocks/Core/Event/IHaveIntegrationEvent.cs
+++ b/src/BuildingBlocks/Core/Event/IHaveIntegrationEvent.cs
@@ -2,4 +2,4 @@ namespace BuildingBlocks.Core.Event;
public interface IHaveIntegrationEvent
{
-}
\ No newline at end of file
+}
diff --git a/src/BuildingBlocks/Core/Event/IInternalCommand.cs b/src/BuildingBlocks/Core/Event/IInternalCommand.cs
index a1dc9e1..986e8eb 100644
--- a/src/BuildingBlocks/Core/Event/IInternalCommand.cs
+++ b/src/BuildingBlocks/Core/Event/IInternalCommand.cs
@@ -1,4 +1,4 @@
-namespace BuildingBlocks.Core.Event;
+namespace BuildingBlocks.Core.Event;
public interface IInternalCommand : IEvent
{
diff --git a/src/BuildingBlocks/Core/Event/InternalCommand.cs b/src/BuildingBlocks/Core/Event/InternalCommand.cs
index b5ca942..cc5bde0 100644
--- a/src/BuildingBlocks/Core/Event/InternalCommand.cs
+++ b/src/BuildingBlocks/Core/Event/InternalCommand.cs
@@ -1,4 +1,4 @@
-using BuildingBlocks.Core.CQRS;
+using BuildingBlocks.Core.CQRS;
namespace BuildingBlocks.Core.Event;
diff --git a/src/BuildingBlocks/Core/Event/MessageEnvelope.cs b/src/BuildingBlocks/Core/Event/MessageEnvelope.cs
index b94d683..2141de8 100644
--- a/src/BuildingBlocks/Core/Event/MessageEnvelope.cs
+++ b/src/BuildingBlocks/Core/Event/MessageEnvelope.cs
@@ -1,4 +1,4 @@
-using Google.Protobuf;
+using Google.Protobuf;
namespace BuildingBlocks.Core.Event;
diff --git a/src/BuildingBlocks/Core/EventDispatcher.cs b/src/BuildingBlocks/Core/EventDispatcher.cs
index cce8628..56daa4c 100644
--- a/src/BuildingBlocks/Core/EventDispatcher.cs
+++ b/src/BuildingBlocks/Core/EventDispatcher.cs
@@ -83,7 +83,7 @@ public sealed class EventDispatcher : IEventDispatcher
public async Task SendAsync(T @event, Type type = null,
CancellationToken cancellationToken = default)
where T : IEvent =>
- await SendAsync(new[] {@event}, type, cancellationToken);
+ await SendAsync(new[] { @event }, type, cancellationToken);
private Task> MapDomainEventToIntegrationEventAsync(
@@ -104,7 +104,8 @@ public sealed class EventDispatcher : IEventDispatcher
var integrationEvent = _eventMapper.MapToIntegrationEvent(@event);
- if (integrationEvent is null) continue;
+ if (integrationEvent is null)
+ continue;
integrationEvents.Add(integrationEvent);
}
@@ -129,7 +130,8 @@ public sealed class EventDispatcher : IEventDispatcher
var integrationEvent = _eventMapper.MapToInternalCommand(@event);
- if (integrationEvent is null) continue;
+ if (integrationEvent is null)
+ continue;
internalCommands.Add(integrationEvent);
}
diff --git a/src/BuildingBlocks/Core/Model/Aggregate.cs b/src/BuildingBlocks/Core/Model/Aggregate.cs
index 33238e7..bd167b3 100644
--- a/src/BuildingBlocks/Core/Model/Aggregate.cs
+++ b/src/BuildingBlocks/Core/Model/Aggregate.cs
@@ -1,4 +1,4 @@
-using BuildingBlocks.Core.Event;
+using BuildingBlocks.Core.Event;
namespace BuildingBlocks.Core.Model;
diff --git a/src/BuildingBlocks/Core/Model/Entity.cs b/src/BuildingBlocks/Core/Model/Entity.cs
index 50da2c8..c0133d7 100644
--- a/src/BuildingBlocks/Core/Model/Entity.cs
+++ b/src/BuildingBlocks/Core/Model/Entity.cs
@@ -1,4 +1,4 @@
-namespace BuildingBlocks.Core.Model;
+namespace BuildingBlocks.Core.Model;
public abstract record Entity : IEntity
{
diff --git a/src/BuildingBlocks/Core/Model/IAggregate.cs b/src/BuildingBlocks/Core/Model/IAggregate.cs
index 4f42b6d..73e6cd0 100644
--- a/src/BuildingBlocks/Core/Model/IAggregate.cs
+++ b/src/BuildingBlocks/Core/Model/IAggregate.cs
@@ -1,4 +1,4 @@
-using BuildingBlocks.Core.Event;
+using BuildingBlocks.Core.Event;
namespace BuildingBlocks.Core.Model;
diff --git a/src/BuildingBlocks/Core/Model/IEntity.cs b/src/BuildingBlocks/Core/Model/IEntity.cs
index 7182098..d385b18 100644
--- a/src/BuildingBlocks/Core/Model/IEntity.cs
+++ b/src/BuildingBlocks/Core/Model/IEntity.cs
@@ -1,11 +1,11 @@
-namespace BuildingBlocks.Core.Model;
+namespace BuildingBlocks.Core.Model;
public interface IEntity : IEntity
{
public T Id { get; set; }
}
-public interface IEntity: IVersion
+public interface IEntity : IVersion
{
public DateTime? CreatedAt { get; set; }
public long? CreatedBy { get; set; }
diff --git a/src/BuildingBlocks/Core/Model/IVersion.cs b/src/BuildingBlocks/Core/Model/IVersion.cs
index e2b3138..6e41ee0 100644
--- a/src/BuildingBlocks/Core/Model/IVersion.cs
+++ b/src/BuildingBlocks/Core/Model/IVersion.cs
@@ -1,4 +1,4 @@
-namespace BuildingBlocks.Core.Model;
+namespace BuildingBlocks.Core.Model;
// For handling optimistic concurrency
public interface IVersion
diff --git a/src/BuildingBlocks/Core/Pagination/Extensions.cs b/src/BuildingBlocks/Core/Pagination/Extensions.cs
index d5a94e4..9a3f263 100644
--- a/src/BuildingBlocks/Core/Pagination/Extensions.cs
+++ b/src/BuildingBlocks/Core/Pagination/Extensions.cs
@@ -1,4 +1,4 @@
-namespace BuildingBlocks.Core.Pagination;
+namespace BuildingBlocks.Core.Pagination;
using Sieve.Models;
using Sieve.Services;
diff --git a/src/BuildingBlocks/Core/Pagination/IPageList.cs b/src/BuildingBlocks/Core/Pagination/IPageList.cs
index f195244..e84ee65 100644
--- a/src/BuildingBlocks/Core/Pagination/IPageList.cs
+++ b/src/BuildingBlocks/Core/Pagination/IPageList.cs
@@ -1,4 +1,4 @@
-namespace BuildingBlocks.Core.Pagination;
+namespace BuildingBlocks.Core.Pagination;
public interface IPageList
where T : class
diff --git a/src/BuildingBlocks/Core/Pagination/IPageQuery.cs b/src/BuildingBlocks/Core/Pagination/IPageQuery.cs
index a8bc4b7..5a19d88 100644
--- a/src/BuildingBlocks/Core/Pagination/IPageQuery.cs
+++ b/src/BuildingBlocks/Core/Pagination/IPageQuery.cs
@@ -1,6 +1,7 @@
-namespace BuildingBlocks.Core.Pagination;
+namespace BuildingBlocks.Core.Pagination;
using MediatR;
public interface IPageQuery : IPageRequest, IRequest
- where TResponse : class { }
+ where TResponse : class
+{ }
diff --git a/src/BuildingBlocks/Core/Pagination/IPageRequest.cs b/src/BuildingBlocks/Core/Pagination/IPageRequest.cs
index d904308..1e9a462 100644
--- a/src/BuildingBlocks/Core/Pagination/IPageRequest.cs
+++ b/src/BuildingBlocks/Core/Pagination/IPageRequest.cs
@@ -1,4 +1,4 @@
-namespace BuildingBlocks.Core.Pagination;
+namespace BuildingBlocks.Core.Pagination;
public interface IPageRequest
{
diff --git a/src/BuildingBlocks/Core/Pagination/PageList.cs b/src/BuildingBlocks/Core/Pagination/PageList.cs
index 44f90a3..70ba0e1 100644
--- a/src/BuildingBlocks/Core/Pagination/PageList.cs
+++ b/src/BuildingBlocks/Core/Pagination/PageList.cs
@@ -1,4 +1,4 @@
-namespace BuildingBlocks.Core.Pagination;
+namespace BuildingBlocks.Core.Pagination;
public record PageList(IReadOnlyList Items, int PageNumber, int PageSize, int TotalCount) : IPageList
where T : class
diff --git a/src/BuildingBlocks/EFCore/AppDbContextBase.cs b/src/BuildingBlocks/EFCore/AppDbContextBase.cs
index b9d1996..1fd548e 100644
--- a/src/BuildingBlocks/EFCore/AppDbContextBase.cs
+++ b/src/BuildingBlocks/EFCore/AppDbContextBase.cs
@@ -32,7 +32,8 @@ public abstract class AppDbContextBase : DbContext, IDbContext
public async Task BeginTransactionAsync(CancellationToken cancellationToken = default)
{
- if (_currentTransaction != null) return;
+ if (_currentTransaction != null)
+ return;
_currentTransaction = await Database.BeginTransactionAsync(IsolationLevel.ReadCommitted, cancellationToken);
}
diff --git a/src/BuildingBlocks/EFCore/DesignTimeDbContextFactoryBase.cs b/src/BuildingBlocks/EFCore/DesignTimeDbContextFactoryBase.cs
index c3c3e2b..a1bd716 100644
--- a/src/BuildingBlocks/EFCore/DesignTimeDbContextFactoryBase.cs
+++ b/src/BuildingBlocks/EFCore/DesignTimeDbContextFactoryBase.cs
@@ -6,7 +6,7 @@ using Microsoft.Extensions.Configuration;
namespace BuildingBlocks.EFCore
{
- public abstract class DesignTimeDbContextFactoryBase : IDesignTimeDbContextFactory where TContext : DbContext
+ public abstract class DesignTimeDbContextFactoryBase : IDesignTimeDbContextFactory where TContext : DbContext
{
public TContext CreateDbContext(string[] args)
{
@@ -59,4 +59,4 @@ namespace BuildingBlocks.EFCore
return CreateNewInstance(options);
}
}
-}
\ No newline at end of file
+}
diff --git a/src/BuildingBlocks/EFCore/EfTxBehavior.cs b/src/BuildingBlocks/EFCore/EfTxBehavior.cs
index a528f4a..3323f94 100644
--- a/src/BuildingBlocks/EFCore/EfTxBehavior.cs
+++ b/src/BuildingBlocks/EFCore/EfTxBehavior.cs
@@ -50,9 +50,9 @@ public class EfTxBehavior : IPipelineBehavior
+ .AddSingleton(x =>
{
var eventStoreOptions = services.GetOptions(nameof(EventStoreOptions));
return new EventStoreClient(EventStoreClientSettings.Create(eventStoreOptions.ConnectionString));
diff --git a/src/BuildingBlocks/EventStoreDB/Events/AggregateEventSourcing.cs b/src/BuildingBlocks/EventStoreDB/Events/AggregateEventSourcing.cs
index d9578b1..00476f3 100644
--- a/src/BuildingBlocks/EventStoreDB/Events/AggregateEventSourcing.cs
+++ b/src/BuildingBlocks/EventStoreDB/Events/AggregateEventSourcing.cs
@@ -1,4 +1,4 @@
-using BuildingBlocks.Core.Event;
+using BuildingBlocks.Core.Event;
using BuildingBlocks.Core.Model;
namespace BuildingBlocks.EventStoreDB.Events
diff --git a/src/BuildingBlocks/EventStoreDB/Events/AggregateStreamExtensions.cs b/src/BuildingBlocks/EventStoreDB/Events/AggregateStreamExtensions.cs
index 34452d8..56447f0 100644
--- a/src/BuildingBlocks/EventStoreDB/Events/AggregateStreamExtensions.cs
+++ b/src/BuildingBlocks/EventStoreDB/Events/AggregateStreamExtensions.cs
@@ -1,4 +1,4 @@
-using BuildingBlocks.EventStoreDB.Serialization;
+using BuildingBlocks.EventStoreDB.Serialization;
using EventStore.Client;
namespace BuildingBlocks.EventStoreDB.Events;
diff --git a/src/BuildingBlocks/EventStoreDB/Events/EventTypeMapper.cs b/src/BuildingBlocks/EventStoreDB/Events/EventTypeMapper.cs
index 3891dff..d8dbe8d 100644
--- a/src/BuildingBlocks/EventStoreDB/Events/EventTypeMapper.cs
+++ b/src/BuildingBlocks/EventStoreDB/Events/EventTypeMapper.cs
@@ -1,4 +1,4 @@
-using System.Collections.Concurrent;
+using System.Collections.Concurrent;
using BuildingBlocks.Utils;
namespace BuildingBlocks.EventStoreDB.Events;
diff --git a/src/BuildingBlocks/EventStoreDB/Events/IEventHandler.cs b/src/BuildingBlocks/EventStoreDB/Events/IEventHandler.cs
index 90c0a09..bb0ed35 100644
--- a/src/BuildingBlocks/EventStoreDB/Events/IEventHandler.cs
+++ b/src/BuildingBlocks/EventStoreDB/Events/IEventHandler.cs
@@ -3,7 +3,7 @@ using MediatR;
namespace BuildingBlocks.EventStoreDB.Events;
-public interface IEventHandler: INotificationHandler
+public interface IEventHandler : INotificationHandler
where TEvent : IEvent
{
}
diff --git a/src/BuildingBlocks/EventStoreDB/Events/IExternalEvent.cs b/src/BuildingBlocks/EventStoreDB/Events/IExternalEvent.cs
index bfc42fc..c95e20c 100644
--- a/src/BuildingBlocks/EventStoreDB/Events/IExternalEvent.cs
+++ b/src/BuildingBlocks/EventStoreDB/Events/IExternalEvent.cs
@@ -2,6 +2,6 @@ using BuildingBlocks.Core.Event;
namespace BuildingBlocks.EventStoreDB.Events;
-public interface IExternalEvent: IEvent
+public interface IExternalEvent : IEvent
{
}
diff --git a/src/BuildingBlocks/EventStoreDB/Events/IProjection.cs b/src/BuildingBlocks/EventStoreDB/Events/IProjection.cs
index 272a213..aac706a 100644
--- a/src/BuildingBlocks/EventStoreDB/Events/IProjection.cs
+++ b/src/BuildingBlocks/EventStoreDB/Events/IProjection.cs
@@ -1,4 +1,4 @@
-namespace BuildingBlocks.EventStoreDB.Events;
+namespace BuildingBlocks.EventStoreDB.Events;
public interface IProjection
{
diff --git a/src/BuildingBlocks/EventStoreDB/Events/StreamEvent.cs b/src/BuildingBlocks/EventStoreDB/Events/StreamEvent.cs
index 2836b3e..b6085b3 100644
--- a/src/BuildingBlocks/EventStoreDB/Events/StreamEvent.cs
+++ b/src/BuildingBlocks/EventStoreDB/Events/StreamEvent.cs
@@ -1,4 +1,4 @@
-using BuildingBlocks.Core.Event;
+using BuildingBlocks.Core.Event;
namespace BuildingBlocks.EventStoreDB.Events;
@@ -7,7 +7,7 @@ public record EventMetadata(
ulong LogPosition
);
-public class StreamEvent: IEvent
+public class StreamEvent : IEvent
{
public object Data { get; }
public EventMetadata Metadata { get; }
@@ -19,7 +19,7 @@ public class StreamEvent: IEvent
}
}
-public class StreamEvent: StreamEvent where T: notnull
+public class StreamEvent : StreamEvent where T : notnull
{
public new T Data => (T)base.Data;
diff --git a/src/BuildingBlocks/EventStoreDB/Events/StreamEventExtensions.cs b/src/BuildingBlocks/EventStoreDB/Events/StreamEventExtensions.cs
index ccfdcc3..11e97a2 100644
--- a/src/BuildingBlocks/EventStoreDB/Events/StreamEventExtensions.cs
+++ b/src/BuildingBlocks/EventStoreDB/Events/StreamEventExtensions.cs
@@ -1,4 +1,4 @@
-using System.Diagnostics.Eventing.Reader;
+using System.Diagnostics.Eventing.Reader;
using BuildingBlocks.EventStoreDB.Serialization;
using EventStore.Client;
diff --git a/src/BuildingBlocks/EventStoreDB/Events/StreamNameMapper.cs b/src/BuildingBlocks/EventStoreDB/Events/StreamNameMapper.cs
index 1013026..0c4e871 100644
--- a/src/BuildingBlocks/EventStoreDB/Events/StreamNameMapper.cs
+++ b/src/BuildingBlocks/EventStoreDB/Events/StreamNameMapper.cs
@@ -1,4 +1,4 @@
-using System.Collections.Concurrent;
+using System.Collections.Concurrent;
namespace BuildingBlocks.EventStoreDB.Events;
@@ -20,7 +20,7 @@ public class StreamNameMapper
public static string ToStreamId(Type streamType, object aggregateId, object? tenantId = null)
{
- var tenantPrefix = tenantId != null ? $"{tenantId}_" : "";
+ var tenantPrefix = tenantId != null ? $"{tenantId}_" : "";
return $"{tenantPrefix}{streamType.Name}-{aggregateId}";
}
diff --git a/src/BuildingBlocks/EventStoreDB/Extensions.cs b/src/BuildingBlocks/EventStoreDB/Extensions.cs
index ea16d74..f1f3ac8 100644
--- a/src/BuildingBlocks/EventStoreDB/Extensions.cs
+++ b/src/BuildingBlocks/EventStoreDB/Extensions.cs
@@ -1,4 +1,4 @@
-using System.Reflection;
+using System.Reflection;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
diff --git a/src/BuildingBlocks/EventStoreDB/Repository/EventStoreDBRepository.cs b/src/BuildingBlocks/EventStoreDB/Repository/EventStoreDBRepository.cs
index 767e19a..6d7e34a 100644
--- a/src/BuildingBlocks/EventStoreDB/Repository/EventStoreDBRepository.cs
+++ b/src/BuildingBlocks/EventStoreDB/Repository/EventStoreDBRepository.cs
@@ -1,4 +1,4 @@
-using BuildingBlocks.EventStoreDB.Events;
+using BuildingBlocks.EventStoreDB.Events;
using BuildingBlocks.EventStoreDB.Serialization;
using EventStore.Client;
diff --git a/src/BuildingBlocks/EventStoreDB/Repository/RepositoryExtensions.cs b/src/BuildingBlocks/EventStoreDB/Repository/RepositoryExtensions.cs
index 79ba271..32a4909 100644
--- a/src/BuildingBlocks/EventStoreDB/Repository/RepositoryExtensions.cs
+++ b/src/BuildingBlocks/EventStoreDB/Repository/RepositoryExtensions.cs
@@ -28,6 +28,6 @@ public static class RepositoryExtensions
action(entity);
- return await repository.Update(entity, expectedVersion,cancellationToken);
+ return await repository.Update(entity, expectedVersion, cancellationToken);
}
}
diff --git a/src/BuildingBlocks/EventStoreDB/Serialization/EventStoreDBSerializer.cs b/src/BuildingBlocks/EventStoreDB/Serialization/EventStoreDBSerializer.cs
index fbdd8a0..6665e9b 100644
--- a/src/BuildingBlocks/EventStoreDB/Serialization/EventStoreDBSerializer.cs
+++ b/src/BuildingBlocks/EventStoreDB/Serialization/EventStoreDBSerializer.cs
@@ -1,4 +1,4 @@
-using System.Text;
+using System.Text;
using BuildingBlocks.EventStoreDB.Events;
using EventStore.Client;
using Newtonsoft.Json;
diff --git a/src/BuildingBlocks/EventStoreDB/Serialization/JsonObjectContractProvider.cs b/src/BuildingBlocks/EventStoreDB/Serialization/JsonObjectContractProvider.cs
index b4fc37c..e8dc66a 100644
--- a/src/BuildingBlocks/EventStoreDB/Serialization/JsonObjectContractProvider.cs
+++ b/src/BuildingBlocks/EventStoreDB/Serialization/JsonObjectContractProvider.cs
@@ -1,4 +1,4 @@
-using System.Collections.Concurrent;
+using System.Collections.Concurrent;
using System.Reflection;
using Newtonsoft.Json;
using Newtonsoft.Json.Serialization;
@@ -18,7 +18,8 @@ public static class JsonObjectContractProvider
{
var nonDefaultConstructor = GetNonDefaultConstructor(objectType);
- if (nonDefaultConstructor == null) return contract;
+ if (nonDefaultConstructor == null)
+ return contract;
contract.OverrideCreator = GetObjectConstructor(nonDefaultConstructor);
contract.CreatorParameters.Clear();
diff --git a/src/BuildingBlocks/EventStoreDB/Serialization/NonDefaultConstructorContractResolver.cs b/src/BuildingBlocks/EventStoreDB/Serialization/NonDefaultConstructorContractResolver.cs
index b651a47..dd18eff 100644
--- a/src/BuildingBlocks/EventStoreDB/Serialization/NonDefaultConstructorContractResolver.cs
+++ b/src/BuildingBlocks/EventStoreDB/Serialization/NonDefaultConstructorContractResolver.cs
@@ -1,8 +1,8 @@
-using Newtonsoft.Json.Serialization;
+using Newtonsoft.Json.Serialization;
namespace BuildingBlocks.EventStoreDB.Serialization;
-public class NonDefaultConstructorContractResolver: DefaultContractResolver
+public class NonDefaultConstructorContractResolver : DefaultContractResolver
{
protected override JsonObjectContract CreateObjectContract(Type objectType)
{
diff --git a/src/BuildingBlocks/EventStoreDB/Subscriptions/EventStoreDBSubscriptionCheckpointRepository.cs b/src/BuildingBlocks/EventStoreDB/Subscriptions/EventStoreDBSubscriptionCheckpointRepository.cs
index ea58df7..1f2b71b 100644
--- a/src/BuildingBlocks/EventStoreDB/Subscriptions/EventStoreDBSubscriptionCheckpointRepository.cs
+++ b/src/BuildingBlocks/EventStoreDB/Subscriptions/EventStoreDBSubscriptionCheckpointRepository.cs
@@ -1,13 +1,13 @@
-using BuildingBlocks.Core.Event;
+using BuildingBlocks.Core.Event;
using BuildingBlocks.EventStoreDB.Events;
using BuildingBlocks.EventStoreDB.Serialization;
using EventStore.Client;
namespace BuildingBlocks.EventStoreDB.Subscriptions;
-public record CheckpointStored(string SubscriptionId, ulong? Position, DateTime CheckpointedAt): IEvent;
+public record CheckpointStored(string SubscriptionId, ulong? Position, DateTime CheckpointedAt) : IEvent;
-public class EventStoreDBSubscriptionCheckpointRepository: ISubscriptionCheckpointRepository
+public class EventStoreDBSubscriptionCheckpointRepository : ISubscriptionCheckpointRepository
{
private readonly EventStoreClient eventStoreClient;
@@ -37,7 +37,7 @@ public class EventStoreDBSubscriptionCheckpointRepository: ISubscriptionCheckpoi
public async ValueTask Store(string subscriptionId, ulong position, CancellationToken ct)
{
var @event = new CheckpointStored(subscriptionId, position, DateTime.UtcNow);
- var eventToAppend = new[] {@event.ToJsonEventData()};
+ var eventToAppend = new[] { @event.ToJsonEventData() };
var streamName = GetCheckpointStreamName(subscriptionId);
try
diff --git a/src/BuildingBlocks/EventStoreDB/Subscriptions/EventStoreDBSubscriptionToAll.cs b/src/BuildingBlocks/EventStoreDB/Subscriptions/EventStoreDBSubscriptionToAll.cs
index d371806..4832e3d 100644
--- a/src/BuildingBlocks/EventStoreDB/Subscriptions/EventStoreDBSubscriptionToAll.cs
+++ b/src/BuildingBlocks/EventStoreDB/Subscriptions/EventStoreDBSubscriptionToAll.cs
@@ -79,7 +79,8 @@ public class EventStoreDBSubscriptionToAll
{
try
{
- if (IsEventWithEmptyData(resolvedEvent) || IsCheckpointEvent(resolvedEvent)) return;
+ if (IsEventWithEmptyData(resolvedEvent) || IsCheckpointEvent(resolvedEvent))
+ return;
var streamEvent = resolvedEvent.ToStreamEvent();
@@ -123,7 +124,7 @@ public class EventStoreDBSubscriptionToAll
reason
);
- if (exception is RpcException {StatusCode: StatusCode.Cancelled})
+ if (exception is RpcException { StatusCode: StatusCode.Cancelled })
return;
Resubscribe();
@@ -172,7 +173,8 @@ public class EventStoreDBSubscriptionToAll
private bool IsEventWithEmptyData(ResolvedEvent resolvedEvent)
{
- if (resolvedEvent.Event.Data.Length != 0) return false;
+ if (resolvedEvent.Event.Data.Length != 0)
+ return false;
logger.LogInformation("Event without data received");
return true;
@@ -180,7 +182,8 @@ public class EventStoreDBSubscriptionToAll
private bool IsCheckpointEvent(ResolvedEvent resolvedEvent)
{
- if (resolvedEvent.Event.EventType != EventTypeMapper.ToName()) return false;
+ if (resolvedEvent.Event.EventType != EventTypeMapper.ToName())
+ return false;
logger.LogInformation("Checkpoint event - ignoring");
return true;
diff --git a/src/BuildingBlocks/EventStoreDB/Subscriptions/ISubscriptionCheckpointRepository.cs b/src/BuildingBlocks/EventStoreDB/Subscriptions/ISubscriptionCheckpointRepository.cs
index d65dd46..07a7062 100644
--- a/src/BuildingBlocks/EventStoreDB/Subscriptions/ISubscriptionCheckpointRepository.cs
+++ b/src/BuildingBlocks/EventStoreDB/Subscriptions/ISubscriptionCheckpointRepository.cs
@@ -1,4 +1,4 @@
-namespace BuildingBlocks.EventStoreDB.Subscriptions;
+namespace BuildingBlocks.EventStoreDB.Subscriptions;
public interface ISubscriptionCheckpointRepository
{
diff --git a/src/BuildingBlocks/EventStoreDB/Subscriptions/InMemorySubscriptionCheckpointRepository.cs b/src/BuildingBlocks/EventStoreDB/Subscriptions/InMemorySubscriptionCheckpointRepository.cs
index 9b90fa1..59e95d0 100644
--- a/src/BuildingBlocks/EventStoreDB/Subscriptions/InMemorySubscriptionCheckpointRepository.cs
+++ b/src/BuildingBlocks/EventStoreDB/Subscriptions/InMemorySubscriptionCheckpointRepository.cs
@@ -1,4 +1,4 @@
-using System.Collections.Concurrent;
+using System.Collections.Concurrent;
namespace BuildingBlocks.EventStoreDB.Subscriptions;
diff --git a/src/BuildingBlocks/Exception/AppException.cs b/src/BuildingBlocks/Exception/AppException.cs
index 08f8b8e..978ee6d 100644
--- a/src/BuildingBlocks/Exception/AppException.cs
+++ b/src/BuildingBlocks/Exception/AppException.cs
@@ -17,7 +17,7 @@ public class AppException : CustomException
{
}
- public AppException(string message, System.Exception innerException, int? code = null) : base(message, innerException, code: code)
+ public AppException(string message, System.Exception innerException, int? code = null) : base(message, innerException, code: code)
{
}
}
diff --git a/src/BuildingBlocks/Exception/InternalServerException.cs b/src/BuildingBlocks/Exception/InternalServerException.cs
index d917560..c8c603d 100644
--- a/src/BuildingBlocks/Exception/InternalServerException.cs
+++ b/src/BuildingBlocks/Exception/InternalServerException.cs
@@ -11,7 +11,7 @@ namespace BuildingBlocks.Exception
public InternalServerException(string message, int? code) : base(message, HttpStatusCode.InternalServerError, code: code) { }
public InternalServerException(string message, int? code = null, params object[] args)
- : base(message:String.Format(CultureInfo.CurrentCulture, message, args, HttpStatusCode.InternalServerError, code))
+ : base(message: String.Format(CultureInfo.CurrentCulture, message, args, HttpStatusCode.InternalServerError, code))
{
}
}
diff --git a/src/BuildingBlocks/Exception/ProblemDetailsWithCode.cs b/src/BuildingBlocks/Exception/ProblemDetailsWithCode.cs
index b22b881..c9f4fec 100644
--- a/src/BuildingBlocks/Exception/ProblemDetailsWithCode.cs
+++ b/src/BuildingBlocks/Exception/ProblemDetailsWithCode.cs
@@ -1,4 +1,4 @@
-using System.Text.Json.Serialization;
+using System.Text.Json.Serialization;
using Microsoft.AspNetCore.Mvc;
namespace BuildingBlocks.Exception;
diff --git a/src/BuildingBlocks/HealthCheck/Extensions.cs b/src/BuildingBlocks/HealthCheck/Extensions.cs
index 4bf9d5c..bd8623e 100644
--- a/src/BuildingBlocks/HealthCheck/Extensions.cs
+++ b/src/BuildingBlocks/HealthCheck/Extensions.cs
@@ -1,4 +1,4 @@
-using BuildingBlocks.EFCore;
+using BuildingBlocks.EFCore;
using BuildingBlocks.Logging;
using BuildingBlocks.MassTransit;
using BuildingBlocks.Mongo;
@@ -18,7 +18,8 @@ public static class Extensions
{
var healthOptions = services.GetOptions(nameof(HealthOptions));
- if (!healthOptions.Enabled) return services;
+ if (!healthOptions.Enabled)
+ return services;
var appOptions = services.GetOptions(nameof(AppOptions));
var postgresOptions = services.GetOptions(nameof(PostgresOptions));
@@ -51,7 +52,8 @@ public static class Extensions
{
var healthOptions = app.Configuration.GetOptions(nameof(HealthOptions));
- if (!healthOptions.Enabled) return app;
+ if (!healthOptions.Enabled)
+ return app;
app.UseHealthChecks("/healthz",
new HealthCheckOptions
diff --git a/src/BuildingBlocks/HealthCheck/HealthOptions.cs b/src/BuildingBlocks/HealthCheck/HealthOptions.cs
index 7b98301..759158e 100644
--- a/src/BuildingBlocks/HealthCheck/HealthOptions.cs
+++ b/src/BuildingBlocks/HealthCheck/HealthOptions.cs
@@ -1,4 +1,4 @@
-namespace BuildingBlocks.HealthCheck;
+namespace BuildingBlocks.HealthCheck;
public class HealthOptions
{
diff --git a/src/BuildingBlocks/Jwt/JwtExtensions.cs b/src/BuildingBlocks/Jwt/JwtExtensions.cs
index 41c9f4c..e46738e 100644
--- a/src/BuildingBlocks/Jwt/JwtExtensions.cs
+++ b/src/BuildingBlocks/Jwt/JwtExtensions.cs
@@ -13,10 +13,11 @@ public static class JwtExtensions
{
var jwtOptions = services.GetOptions("Jwt");
- services.AddAuthentication(o => {
- o.DefaultAuthenticateScheme = JwtBearerDefaults.AuthenticationScheme;
- o.DefaultChallengeScheme = JwtBearerDefaults.AuthenticationScheme;
- })
+ services.AddAuthentication(o =>
+ {
+ o.DefaultAuthenticateScheme = JwtBearerDefaults.AuthenticationScheme;
+ o.DefaultChallengeScheme = JwtBearerDefaults.AuthenticationScheme;
+ })
.AddCookie(cfg => cfg.SlidingExpiration = true)
.AddJwtBearer(JwtBearerDefaults.AuthenticationScheme, options =>
{
@@ -27,7 +28,7 @@ public static class JwtExtensions
ClockSkew = TimeSpan.FromSeconds(2) // For prevent add default value (5min) to life time token!
};
options.RequireHttpsMetadata = jwtOptions.RequireHttpsMetadata;
- options.MetadataAddress= jwtOptions.MetadataAddress;
+ options.MetadataAddress = jwtOptions.MetadataAddress;
});
if (!string.IsNullOrEmpty(jwtOptions.Audience))
diff --git a/src/BuildingBlocks/Logging/ElasticOptions.cs b/src/BuildingBlocks/Logging/ElasticOptions.cs
index 5c57758..65e210b 100644
--- a/src/BuildingBlocks/Logging/ElasticOptions.cs
+++ b/src/BuildingBlocks/Logging/ElasticOptions.cs
@@ -1,4 +1,4 @@
-namespace BuildingBlocks.Logging;
+namespace BuildingBlocks.Logging;
public class ElasticOptions
{
diff --git a/src/BuildingBlocks/Logging/Extensions.cs b/src/BuildingBlocks/Logging/Extensions.cs
index 5fa1288..b0cb491 100644
--- a/src/BuildingBlocks/Logging/Extensions.cs
+++ b/src/BuildingBlocks/Logging/Extensions.cs
@@ -1,4 +1,4 @@
-using System.Text;
+using System.Text;
using BuildingBlocks.Web;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
@@ -49,7 +49,7 @@ namespace BuildingBlocks.Logging
}
- if (logOptions?.Sentry is {Enabled: true})
+ if (logOptions?.Sentry is { Enabled: true })
{
var minimumBreadcrumbLevel = Enum.TryParse(logOptions.Level, true, out var minBreadcrumbLevel)
? minBreadcrumbLevel
diff --git a/src/BuildingBlocks/Logging/FileOptions.cs b/src/BuildingBlocks/Logging/FileOptions.cs
index 223e824..b3ad623 100644
--- a/src/BuildingBlocks/Logging/FileOptions.cs
+++ b/src/BuildingBlocks/Logging/FileOptions.cs
@@ -1,4 +1,4 @@
-namespace BuildingBlocks.Logging;
+namespace BuildingBlocks.Logging;
public class FileOptions
{
diff --git a/src/BuildingBlocks/Logging/LogEnrichHelper.cs b/src/BuildingBlocks/Logging/LogEnrichHelper.cs
index ecf5c6c..185cf32 100644
--- a/src/BuildingBlocks/Logging/LogEnrichHelper.cs
+++ b/src/BuildingBlocks/Logging/LogEnrichHelper.cs
@@ -1,4 +1,4 @@
-using System.Security.Claims;
+using System.Security.Claims;
using Microsoft.AspNetCore.Http;
using Serilog;
@@ -17,7 +17,7 @@ public static class LogEnrichHelper
diagnosticContext.Set("Scheme", request.Scheme);
// Only set it if available. You're not sending sensitive data in a querystring right?!
- if(request.QueryString.HasValue)
+ if (request.QueryString.HasValue)
{
diagnosticContext.Set("QueryString", request.QueryString.Value);
}
diff --git a/src/BuildingBlocks/Logging/LogOptions.cs b/src/BuildingBlocks/Logging/LogOptions.cs
index c7d880d..8fac194 100644
--- a/src/BuildingBlocks/Logging/LogOptions.cs
+++ b/src/BuildingBlocks/Logging/LogOptions.cs
@@ -1,4 +1,4 @@
-namespace BuildingBlocks.Logging
+namespace BuildingBlocks.Logging
{
public class LogOptions
{
diff --git a/src/BuildingBlocks/Logging/SentryOptions.cs b/src/BuildingBlocks/Logging/SentryOptions.cs
index 3b036d2..8556bbe 100644
--- a/src/BuildingBlocks/Logging/SentryOptions.cs
+++ b/src/BuildingBlocks/Logging/SentryOptions.cs
@@ -1,4 +1,4 @@
-namespace BuildingBlocks.Logging;
+namespace BuildingBlocks.Logging;
public class SentryOptions
{
diff --git a/src/BuildingBlocks/MassTransit/ConsumeFilter.cs b/src/BuildingBlocks/MassTransit/ConsumeFilter.cs
index a4f7c9b..2238e98 100644
--- a/src/BuildingBlocks/MassTransit/ConsumeFilter.cs
+++ b/src/BuildingBlocks/MassTransit/ConsumeFilter.cs
@@ -1,4 +1,4 @@
-using BuildingBlocks.Core.Event;
+using BuildingBlocks.Core.Event;
using BuildingBlocks.PersistMessageProcessor;
using MassTransit;
diff --git a/src/BuildingBlocks/PersistMessageProcessor/Data/Configurations/PersistMessageConfiguration.cs b/src/BuildingBlocks/PersistMessageProcessor/Data/Configurations/PersistMessageConfiguration.cs
index 3142840..8395030 100644
--- a/src/BuildingBlocks/PersistMessageProcessor/Data/Configurations/PersistMessageConfiguration.cs
+++ b/src/BuildingBlocks/PersistMessageProcessor/Data/Configurations/PersistMessageConfiguration.cs
@@ -1,4 +1,4 @@
-using Microsoft.EntityFrameworkCore;
+using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
namespace BuildingBlocks.PersistMessageProcessor.Data.Configurations;
diff --git a/src/BuildingBlocks/PersistMessageProcessor/Data/PersistMessageDbContext.cs b/src/BuildingBlocks/PersistMessageProcessor/Data/PersistMessageDbContext.cs
index e7eacb7..4e569a4 100644
--- a/src/BuildingBlocks/PersistMessageProcessor/Data/PersistMessageDbContext.cs
+++ b/src/BuildingBlocks/PersistMessageProcessor/Data/PersistMessageDbContext.cs
@@ -1,4 +1,4 @@
-using BuildingBlocks.EFCore;
+using BuildingBlocks.EFCore;
using Microsoft.EntityFrameworkCore;
namespace BuildingBlocks.PersistMessageProcessor.Data;
diff --git a/src/BuildingBlocks/PersistMessageProcessor/Extensions.cs b/src/BuildingBlocks/PersistMessageProcessor/Extensions.cs
index b91768a..3ef1690 100644
--- a/src/BuildingBlocks/PersistMessageProcessor/Extensions.cs
+++ b/src/BuildingBlocks/PersistMessageProcessor/Extensions.cs
@@ -1,4 +1,4 @@
-using BuildingBlocks.PersistMessageProcessor.Data;
+using BuildingBlocks.PersistMessageProcessor.Data;
using BuildingBlocks.Web;
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.DependencyInjection;
diff --git a/src/BuildingBlocks/PersistMessageProcessor/IPersistMessageDbContext.cs b/src/BuildingBlocks/PersistMessageProcessor/IPersistMessageDbContext.cs
index 2995a31..b91888e 100644
--- a/src/BuildingBlocks/PersistMessageProcessor/IPersistMessageDbContext.cs
+++ b/src/BuildingBlocks/PersistMessageProcessor/IPersistMessageDbContext.cs
@@ -1,4 +1,4 @@
-using Microsoft.EntityFrameworkCore;
+using Microsoft.EntityFrameworkCore;
namespace BuildingBlocks.PersistMessageProcessor;
diff --git a/src/BuildingBlocks/PersistMessageProcessor/IPersistMessageProcessor.cs b/src/BuildingBlocks/PersistMessageProcessor/IPersistMessageProcessor.cs
index f83beda..a33a377 100644
--- a/src/BuildingBlocks/PersistMessageProcessor/IPersistMessageProcessor.cs
+++ b/src/BuildingBlocks/PersistMessageProcessor/IPersistMessageProcessor.cs
@@ -1,4 +1,4 @@
-using System.Linq.Expressions;
+using System.Linq.Expressions;
using BuildingBlocks.Core.Event;
namespace BuildingBlocks.PersistMessageProcessor;
diff --git a/src/BuildingBlocks/PersistMessageProcessor/MessageDeliveryType.cs b/src/BuildingBlocks/PersistMessageProcessor/MessageDeliveryType.cs
index 9fb5dc2..8d690aa 100644
--- a/src/BuildingBlocks/PersistMessageProcessor/MessageDeliveryType.cs
+++ b/src/BuildingBlocks/PersistMessageProcessor/MessageDeliveryType.cs
@@ -1,4 +1,4 @@
-namespace BuildingBlocks.PersistMessageProcessor;
+namespace BuildingBlocks.PersistMessageProcessor;
[Flags]
public enum MessageDeliveryType
diff --git a/src/BuildingBlocks/PersistMessageProcessor/MessageStatus.cs b/src/BuildingBlocks/PersistMessageProcessor/MessageStatus.cs
index 028053f..039d65e 100644
--- a/src/BuildingBlocks/PersistMessageProcessor/MessageStatus.cs
+++ b/src/BuildingBlocks/PersistMessageProcessor/MessageStatus.cs
@@ -1,4 +1,4 @@
-namespace BuildingBlocks.PersistMessageProcessor;
+namespace BuildingBlocks.PersistMessageProcessor;
public enum MessageStatus
{
diff --git a/src/BuildingBlocks/PersistMessageProcessor/PersistMessage.cs b/src/BuildingBlocks/PersistMessageProcessor/PersistMessage.cs
index 42d0ca5..3e2110f 100644
--- a/src/BuildingBlocks/PersistMessageProcessor/PersistMessage.cs
+++ b/src/BuildingBlocks/PersistMessageProcessor/PersistMessage.cs
@@ -1,8 +1,8 @@
-namespace BuildingBlocks.PersistMessageProcessor;
+namespace BuildingBlocks.PersistMessageProcessor;
using Core.Model;
-public class PersistMessage: IVersion
+public class PersistMessage : IVersion
{
public PersistMessage(Guid id, string dataType, string data, MessageDeliveryType deliveryType)
{
diff --git a/src/BuildingBlocks/PersistMessageProcessor/PersistMessageBackgroundService.cs b/src/BuildingBlocks/PersistMessageProcessor/PersistMessageBackgroundService.cs
index 36deb53..0c0caf1 100644
--- a/src/BuildingBlocks/PersistMessageProcessor/PersistMessageBackgroundService.cs
+++ b/src/BuildingBlocks/PersistMessageProcessor/PersistMessageBackgroundService.cs
@@ -1,4 +1,4 @@
-using Microsoft.Extensions.DependencyInjection;
+using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Options;
diff --git a/src/BuildingBlocks/PersistMessageProcessor/PersistMessageOptions.cs b/src/BuildingBlocks/PersistMessageProcessor/PersistMessageOptions.cs
index 2e16591..535f9fc 100644
--- a/src/BuildingBlocks/PersistMessageProcessor/PersistMessageOptions.cs
+++ b/src/BuildingBlocks/PersistMessageProcessor/PersistMessageOptions.cs
@@ -1,4 +1,4 @@
-namespace BuildingBlocks.PersistMessageProcessor;
+namespace BuildingBlocks.PersistMessageProcessor;
public class PersistMessageOptions
{
diff --git a/src/BuildingBlocks/PersistMessageProcessor/PersistMessageProcessor.cs b/src/BuildingBlocks/PersistMessageProcessor/PersistMessageProcessor.cs
index 5ada23a..7042b5c 100644
--- a/src/BuildingBlocks/PersistMessageProcessor/PersistMessageProcessor.cs
+++ b/src/BuildingBlocks/PersistMessageProcessor/PersistMessageProcessor.cs
@@ -1,4 +1,4 @@
-using System.Linq.Expressions;
+using System.Linq.Expressions;
using System.Text.Json;
using Ardalis.GuardClauses;
using BuildingBlocks.Core.Event;
@@ -145,7 +145,8 @@ public class PersistMessageProcessor : IPersistMessageProcessor
await _publishEndpoint.Publish(data, context =>
{
- foreach (var header in messageEnvelope.Headers) context.Headers.Set(header.Key, header.Value);
+ foreach (var header in messageEnvelope.Headers)
+ context.Headers.Set(header.Key, header.Value);
}, cancellationToken);
_logger.LogInformation(
diff --git a/src/BuildingBlocks/Polly/Extensions.cs b/src/BuildingBlocks/Polly/Extensions.cs
index 3c048e7..d6cf527 100644
--- a/src/BuildingBlocks/Polly/Extensions.cs
+++ b/src/BuildingBlocks/Polly/Extensions.cs
@@ -1,4 +1,4 @@
-namespace BuildingBlocks.Polly;
+namespace BuildingBlocks.Polly;
using global::Polly;
using Serilog;
diff --git a/src/BuildingBlocks/Polly/GrpcCircuitBreaker.cs b/src/BuildingBlocks/Polly/GrpcCircuitBreaker.cs
index ea8941c..98d8076 100644
--- a/src/BuildingBlocks/Polly/GrpcCircuitBreaker.cs
+++ b/src/BuildingBlocks/Polly/GrpcCircuitBreaker.cs
@@ -1,4 +1,4 @@
-namespace BuildingBlocks.Polly;
+namespace BuildingBlocks.Polly;
using System.Net;
using Ardalis.GuardClauses;
diff --git a/src/BuildingBlocks/Polly/GrpcRetry.cs b/src/BuildingBlocks/Polly/GrpcRetry.cs
index 3c84cbf..4128c4a 100644
--- a/src/BuildingBlocks/Polly/GrpcRetry.cs
+++ b/src/BuildingBlocks/Polly/GrpcRetry.cs
@@ -1,4 +1,4 @@
-namespace BuildingBlocks.Polly;
+namespace BuildingBlocks.Polly;
using System.Net;
using Ardalis.GuardClauses;
diff --git a/src/BuildingBlocks/Polly/HttpClientCircuitBreaker.cs b/src/BuildingBlocks/Polly/HttpClientCircuitBreaker.cs
index 699a22a..24f1e21 100644
--- a/src/BuildingBlocks/Polly/HttpClientCircuitBreaker.cs
+++ b/src/BuildingBlocks/Polly/HttpClientCircuitBreaker.cs
@@ -1,4 +1,4 @@
-namespace BuildingBlocks.Polly;
+namespace BuildingBlocks.Polly;
using System.Net;
using Ardalis.GuardClauses;
diff --git a/src/BuildingBlocks/Polly/HttpClientRetry.cs b/src/BuildingBlocks/Polly/HttpClientRetry.cs
index cfcd1eb..3735d50 100644
--- a/src/BuildingBlocks/Polly/HttpClientRetry.cs
+++ b/src/BuildingBlocks/Polly/HttpClientRetry.cs
@@ -1,4 +1,4 @@
-namespace BuildingBlocks.Polly;
+namespace BuildingBlocks.Polly;
using System.Net;
using Ardalis.GuardClauses;
diff --git a/src/BuildingBlocks/Polly/PolicyOptions.cs b/src/BuildingBlocks/Polly/PolicyOptions.cs
index 1b18530..a16be25 100644
--- a/src/BuildingBlocks/Polly/PolicyOptions.cs
+++ b/src/BuildingBlocks/Polly/PolicyOptions.cs
@@ -1,4 +1,4 @@
-namespace BuildingBlocks.Polly;
+namespace BuildingBlocks.Polly;
public class PolicyOptions
{
diff --git a/src/BuildingBlocks/ProblemDetails/Extensions.cs b/src/BuildingBlocks/ProblemDetails/Extensions.cs
index 870b2b2..382b1d9 100644
--- a/src/BuildingBlocks/ProblemDetails/Extensions.cs
+++ b/src/BuildingBlocks/ProblemDetails/Extensions.cs
@@ -1,4 +1,4 @@
-namespace BuildingBlocks.ProblemDetails;
+namespace BuildingBlocks.ProblemDetails;
using Exception;
using Grpc.Core;
diff --git a/src/BuildingBlocks/Swagger/ConfigureSwaggerOptions.cs b/src/BuildingBlocks/Swagger/ConfigureSwaggerOptions.cs
index ce67f17..cee8842 100644
--- a/src/BuildingBlocks/Swagger/ConfigureSwaggerOptions.cs
+++ b/src/BuildingBlocks/Swagger/ConfigureSwaggerOptions.cs
@@ -1,4 +1,4 @@
-using System.Text;
+using System.Text;
using Asp.Versioning;
using Asp.Versioning.ApiExplorer;
using Microsoft.Extensions.DependencyInjection;
@@ -42,8 +42,8 @@ public class ConfigureSwaggerOptions : IConfigureOptions
Version = description.ApiVersion.ToString(),
Title = _options?.Title ?? "APIs",
Description = "An application with Swagger, Swashbuckle, and API versioning.",
- Contact = new OpenApiContact {Name = "", Email = ""},
- License = new OpenApiLicense {Name = "MIT", Url = new Uri("https://opensource.org/licenses/MIT")}
+ Contact = new OpenApiContact { Name = "", Email = "" },
+ License = new OpenApiLicense { Name = "MIT", Url = new Uri("https://opensource.org/licenses/MIT") }
};
if (description.IsDeprecated)
diff --git a/src/BuildingBlocks/Swagger/ServiceCollectionExtensions.cs b/src/BuildingBlocks/Swagger/ServiceCollectionExtensions.cs
index 6452ebb..44f3b8a 100644
--- a/src/BuildingBlocks/Swagger/ServiceCollectionExtensions.cs
+++ b/src/BuildingBlocks/Swagger/ServiceCollectionExtensions.cs
@@ -1,4 +1,4 @@
-using System.Reflection;
+using System.Reflection;
using Microsoft.AspNetCore.Builder;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
@@ -33,7 +33,8 @@ public static class ServiceCollectionExtensions
{
var xmlFile = XmlCommentsFilePath(assembly);
- if (File.Exists(xmlFile)) options.IncludeXmlComments(xmlFile);
+ if (File.Exists(xmlFile))
+ options.IncludeXmlComments(xmlFile);
}
options.AddEnumsWithValuesFixFilters();
diff --git a/src/BuildingBlocks/Swagger/SwaggerDefaultValues.cs b/src/BuildingBlocks/Swagger/SwaggerDefaultValues.cs
index c115882..42cbaef 100644
--- a/src/BuildingBlocks/Swagger/SwaggerDefaultValues.cs
+++ b/src/BuildingBlocks/Swagger/SwaggerDefaultValues.cs
@@ -1,4 +1,4 @@
-using System.Linq;
+using System.Linq;
using Humanizer;
using Microsoft.AspNetCore.Mvc.ApiExplorer;
using Microsoft.OpenApi.Models;
@@ -59,7 +59,7 @@ namespace BuildingBlocks.Swagger
{
// REF: https://github.com/Microsoft/aspnet-api-versioning/issues/429#issuecomment-605402330
var json = JsonConvert.SerializeObject(description.DefaultValue, description.ModelMetadata
- .ModelType, new JsonSerializerSettings {ReferenceLoopHandling = ReferenceLoopHandling.Ignore});
+ .ModelType, new JsonSerializerSettings { ReferenceLoopHandling = ReferenceLoopHandling.Ignore });
parameter.Schema.Default = OpenApiAnyFactory.CreateFromJson(json);
}
diff --git a/src/BuildingBlocks/Swagger/SwaggerOptions.cs b/src/BuildingBlocks/Swagger/SwaggerOptions.cs
index c385995..82edaf8 100644
--- a/src/BuildingBlocks/Swagger/SwaggerOptions.cs
+++ b/src/BuildingBlocks/Swagger/SwaggerOptions.cs
@@ -6,4 +6,4 @@ namespace BuildingBlocks.Swagger
public string Name { get; set; }
public string Version { get; set; }
}
-}
\ No newline at end of file
+}
diff --git a/src/BuildingBlocks/TestBase/TestBase.cs b/src/BuildingBlocks/TestBase/TestBase.cs
index 0e87026..cfc33db 100644
--- a/src/BuildingBlocks/TestBase/TestBase.cs
+++ b/src/BuildingBlocks/TestBase/TestBase.cs
@@ -1,4 +1,6 @@
-using Ardalis.GuardClauses;
+using System.Net;
+using System.Security.Claims;
+using Ardalis.GuardClauses;
using BuildingBlocks.Core.Event;
using BuildingBlocks.Core.Model;
using BuildingBlocks.EFCore;
@@ -20,12 +22,10 @@ using MongoDB.Driver;
using NSubstitute;
using Respawn;
using Serilog;
+using WebMotions.Fake.Authentication.JwtBearer;
using Xunit;
using Xunit.Abstractions;
using ILogger = Serilog.ILogger;
-using System.Net;
-using System.Security.Claims;
-using WebMotions.Fake.Authentication.JwtBearer;
namespace BuildingBlocks.TestBase;
diff --git a/src/BuildingBlocks/TestBase/TestContainers.cs b/src/BuildingBlocks/TestBase/TestContainers.cs
index 2fdafb8..462b912 100644
--- a/src/BuildingBlocks/TestBase/TestContainers.cs
+++ b/src/BuildingBlocks/TestBase/TestContainers.cs
@@ -1,4 +1,4 @@
-namespace BuildingBlocks.TestBase;
+namespace BuildingBlocks.TestBase;
using Testcontainers.EventStoreDb;
using Testcontainers.MongoDb;
diff --git a/src/BuildingBlocks/Utils/NoSynchronizationContextScope.cs b/src/BuildingBlocks/Utils/NoSynchronizationContextScope.cs
index 5742d0b..6bb4e59 100644
--- a/src/BuildingBlocks/Utils/NoSynchronizationContextScope.cs
+++ b/src/BuildingBlocks/Utils/NoSynchronizationContextScope.cs
@@ -1,4 +1,4 @@
-namespace BuildingBlocks.Utils;
+namespace BuildingBlocks.Utils;
public static class NoSynchronizationContextScope
{
@@ -9,7 +9,7 @@ public static class NoSynchronizationContextScope
return new Disposable(context);
}
- public struct Disposable: IDisposable
+ public struct Disposable : IDisposable
{
private readonly SynchronizationContext? synchronizationContext;
@@ -21,4 +21,4 @@ public static class NoSynchronizationContextScope
public void Dispose() =>
SynchronizationContext.SetSynchronizationContext(synchronizationContext);
}
-}
\ No newline at end of file
+}
diff --git a/src/BuildingBlocks/Utils/ServiceLocator.cs b/src/BuildingBlocks/Utils/ServiceLocator.cs
index c8d3ce8..4ab1611 100644
--- a/src/BuildingBlocks/Utils/ServiceLocator.cs
+++ b/src/BuildingBlocks/Utils/ServiceLocator.cs
@@ -1,4 +1,4 @@
-using Microsoft.Extensions.DependencyInjection;
+using Microsoft.Extensions.DependencyInjection;
namespace BuildingBlocks.Utils;
diff --git a/src/BuildingBlocks/Validation/ValidationError.cs b/src/BuildingBlocks/Validation/ValidationError.cs
index 1620ed4..ab78b81 100644
--- a/src/BuildingBlocks/Validation/ValidationError.cs
+++ b/src/BuildingBlocks/Validation/ValidationError.cs
@@ -12,4 +12,4 @@ namespace BuildingBlocks.Validation
Message = message;
}
}
-}
\ No newline at end of file
+}
diff --git a/src/BuildingBlocks/Web/ApiVersioningExtensions.cs b/src/BuildingBlocks/Web/ApiVersioningExtensions.cs
index 7449c8e..c7c899a 100644
--- a/src/BuildingBlocks/Web/ApiVersioningExtensions.cs
+++ b/src/BuildingBlocks/Web/ApiVersioningExtensions.cs
@@ -1,4 +1,4 @@
-using Asp.Versioning;
+using Asp.Versioning;
using Microsoft.Extensions.DependencyInjection;
namespace BuildingBlocks.Web;
diff --git a/src/BuildingBlocks/Web/BaseController.cs b/src/BuildingBlocks/Web/BaseController.cs
index 8f7dc5b..2447978 100644
--- a/src/BuildingBlocks/Web/BaseController.cs
+++ b/src/BuildingBlocks/Web/BaseController.cs
@@ -1,4 +1,4 @@
-using Asp.Versioning;
+using Asp.Versioning;
using MediatR;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.DependencyInjection;
diff --git a/src/BuildingBlocks/Web/ConfigurationHelper.cs b/src/BuildingBlocks/Web/ConfigurationHelper.cs
index 87480fc..240139b 100644
--- a/src/BuildingBlocks/Web/ConfigurationHelper.cs
+++ b/src/BuildingBlocks/Web/ConfigurationHelper.cs
@@ -1,4 +1,4 @@
-using Microsoft.Extensions.Configuration;
+using Microsoft.Extensions.Configuration;
namespace BuildingBlocks.Web
{
diff --git a/src/BuildingBlocks/Web/CurrentUserProvider.cs b/src/BuildingBlocks/Web/CurrentUserProvider.cs
index 0796c16..e0f910d 100644
--- a/src/BuildingBlocks/Web/CurrentUserProvider.cs
+++ b/src/BuildingBlocks/Web/CurrentUserProvider.cs
@@ -1,4 +1,4 @@
-using System.Security.Claims;
+using System.Security.Claims;
using Microsoft.AspNetCore.Http;
namespace BuildingBlocks.Web;
diff --git a/src/BuildingBlocks/Web/EndpointConfig.cs b/src/BuildingBlocks/Web/EndpointConfig.cs
index 43afbc7..fa517b7 100644
--- a/src/BuildingBlocks/Web/EndpointConfig.cs
+++ b/src/BuildingBlocks/Web/EndpointConfig.cs
@@ -1,4 +1,4 @@
-using Asp.Versioning.Builder;
+using Asp.Versioning.Builder;
namespace BuildingBlocks.Web;
diff --git a/src/BuildingBlocks/Web/IMinimalEndpoint.cs b/src/BuildingBlocks/Web/IMinimalEndpoint.cs
index 7b443c5..ef2a6d9 100644
--- a/src/BuildingBlocks/Web/IMinimalEndpoint.cs
+++ b/src/BuildingBlocks/Web/IMinimalEndpoint.cs
@@ -1,4 +1,4 @@
-using Microsoft.AspNetCore.Routing;
+using Microsoft.AspNetCore.Routing;
namespace BuildingBlocks.Web;
diff --git a/src/BuildingBlocks/Web/MinimalApiExtensions.cs b/src/BuildingBlocks/Web/MinimalApiExtensions.cs
index cf0417a..da37b9c 100644
--- a/src/BuildingBlocks/Web/MinimalApiExtensions.cs
+++ b/src/BuildingBlocks/Web/MinimalApiExtensions.cs
@@ -1,4 +1,4 @@
-using System.Reflection;
+using System.Reflection;
using BuildingBlocks.Utils;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Routing;
diff --git a/src/BuildingBlocks/Web/ServiceCollectionExtensions.cs b/src/BuildingBlocks/Web/ServiceCollectionExtensions.cs
index 680962c..2d81bf1 100644
--- a/src/BuildingBlocks/Web/ServiceCollectionExtensions.cs
+++ b/src/BuildingBlocks/Web/ServiceCollectionExtensions.cs
@@ -1,4 +1,4 @@
-using Microsoft.Extensions.DependencyInjection;
+using Microsoft.Extensions.DependencyInjection;
using NSubstitute;
namespace BuildingBlocks.Web;
diff --git a/src/BuildingBlocks/Web/ServiceProviderExtensions.cs b/src/BuildingBlocks/Web/ServiceProviderExtensions.cs
index 1ab0d8b..492facf 100644
--- a/src/BuildingBlocks/Web/ServiceProviderExtensions.cs
+++ b/src/BuildingBlocks/Web/ServiceProviderExtensions.cs
@@ -1,4 +1,4 @@
-using Microsoft.Extensions.Hosting;
+using Microsoft.Extensions.Hosting;
namespace BuildingBlocks.Web;
diff --git a/src/Services/Booking/src/Booking.Api/Booking.Api.csproj b/src/Services/Booking/src/Booking.Api/Booking.Api.csproj
index fb05520..1929b17 100644
--- a/src/Services/Booking/src/Booking.Api/Booking.Api.csproj
+++ b/src/Services/Booking/src/Booking.Api/Booking.Api.csproj
@@ -1,11 +1,5 @@
-
- net8.0
- enable
- enable
-
-
diff --git a/src/Services/Booking/src/Booking.Api/Program.cs b/src/Services/Booking/src/Booking.Api/Program.cs
index 514f063..550e52f 100644
--- a/src/Services/Booking/src/Booking.Api/Program.cs
+++ b/src/Services/Booking/src/Booking.Api/Program.cs
@@ -12,7 +12,7 @@ builder.Host.UseDefaultServiceProvider((context, options) =>
options.ValidateOnBuild = true;
});
-builder.AddMinimalEndpoints(assemblies:typeof(BookingRoot).Assembly);
+builder.AddMinimalEndpoints(assemblies: typeof(BookingRoot).Assembly);
builder.AddInfrastructure();
var app = builder.Build();
diff --git a/src/Services/Booking/src/Booking/Booking.csproj b/src/Services/Booking/src/Booking/Booking.csproj
index 31f879f..d1d9d8e 100644
--- a/src/Services/Booking/src/Booking/Booking.csproj
+++ b/src/Services/Booking/src/Booking/Booking.csproj
@@ -1,21 +1,15 @@
-
-
- net8.0
- enable
- enable
-
-
+
-
+
all
runtime; build; native; contentfiles; analyzers; buildtransitive
-
+
all
runtime; build; native; contentfiles; analyzers; buildtransitive
diff --git a/src/Services/Booking/src/Booking/Booking/Exceptions/InvalidAircraftIdException.cs b/src/Services/Booking/src/Booking/Booking/Exceptions/InvalidAircraftIdException.cs
index af2d3b0..e56f720 100644
--- a/src/Services/Booking/src/Booking/Booking/Exceptions/InvalidAircraftIdException.cs
+++ b/src/Services/Booking/src/Booking/Booking/Exceptions/InvalidAircraftIdException.cs
@@ -1,4 +1,4 @@
-namespace Booking.Booking.Exceptions;
+namespace Booking.Booking.Exceptions;
using BuildingBlocks.Exception;
diff --git a/src/Services/Booking/src/Booking/Booking/Exceptions/InvalidArriveAirportIdException.cs b/src/Services/Booking/src/Booking/Booking/Exceptions/InvalidArriveAirportIdException.cs
index 44c9d8d..33ac680 100644
--- a/src/Services/Booking/src/Booking/Booking/Exceptions/InvalidArriveAirportIdException.cs
+++ b/src/Services/Booking/src/Booking/Booking/Exceptions/InvalidArriveAirportIdException.cs
@@ -1,4 +1,4 @@
-namespace Booking.Booking.Exceptions;
+namespace Booking.Booking.Exceptions;
using BuildingBlocks.Exception;
diff --git a/src/Services/Booking/src/Booking/Booking/Exceptions/InvalidDepartureAirportIdException.cs b/src/Services/Booking/src/Booking/Booking/Exceptions/InvalidDepartureAirportIdException.cs
index 07ba585..47f0d56 100644
--- a/src/Services/Booking/src/Booking/Booking/Exceptions/InvalidDepartureAirportIdException.cs
+++ b/src/Services/Booking/src/Booking/Booking/Exceptions/InvalidDepartureAirportIdException.cs
@@ -1,4 +1,4 @@
-namespace Booking.Booking.Exceptions;
+namespace Booking.Booking.Exceptions;
using BuildingBlocks.Exception;
diff --git a/src/Services/Booking/src/Booking/Booking/Exceptions/InvalidFlightDateException.cs b/src/Services/Booking/src/Booking/Booking/Exceptions/InvalidFlightDateException.cs
index b1c80e1..8b4fd48 100644
--- a/src/Services/Booking/src/Booking/Booking/Exceptions/InvalidFlightDateException.cs
+++ b/src/Services/Booking/src/Booking/Booking/Exceptions/InvalidFlightDateException.cs
@@ -1,4 +1,4 @@
-namespace Booking.Booking.Exceptions;
+namespace Booking.Booking.Exceptions;
using BuildingBlocks.Exception;
diff --git a/src/Services/Booking/src/Booking/Booking/Exceptions/InvalidFlightNumberException.cs b/src/Services/Booking/src/Booking/Booking/Exceptions/InvalidFlightNumberException.cs
index b5000e1..146a001 100644
--- a/src/Services/Booking/src/Booking/Booking/Exceptions/InvalidFlightNumberException.cs
+++ b/src/Services/Booking/src/Booking/Booking/Exceptions/InvalidFlightNumberException.cs
@@ -1,4 +1,4 @@
-namespace Booking.Booking.Exceptions;
+namespace Booking.Booking.Exceptions;
using BuildingBlocks.Exception;
public class InvalidFlightNumberException : BadRequestException
diff --git a/src/Services/Booking/src/Booking/Booking/Exceptions/InvalidPassengerNameException.cs b/src/Services/Booking/src/Booking/Booking/Exceptions/InvalidPassengerNameException.cs
index 238317b..9ff87eb 100644
--- a/src/Services/Booking/src/Booking/Booking/Exceptions/InvalidPassengerNameException.cs
+++ b/src/Services/Booking/src/Booking/Booking/Exceptions/InvalidPassengerNameException.cs
@@ -1,4 +1,4 @@
-namespace Booking.Booking.Exceptions;
+namespace Booking.Booking.Exceptions;
using BuildingBlocks.Exception;
diff --git a/src/Services/Booking/src/Booking/Booking/Exceptions/InvalidPriceException.cs b/src/Services/Booking/src/Booking/Booking/Exceptions/InvalidPriceException.cs
index eac700a..ece6249 100644
--- a/src/Services/Booking/src/Booking/Booking/Exceptions/InvalidPriceException.cs
+++ b/src/Services/Booking/src/Booking/Booking/Exceptions/InvalidPriceException.cs
@@ -1,4 +1,4 @@
-namespace Booking.Booking.Exceptions;
+namespace Booking.Booking.Exceptions;
using BuildingBlocks.Exception;
diff --git a/src/Services/Booking/src/Booking/Booking/Exceptions/SeatNumberException.cs b/src/Services/Booking/src/Booking/Booking/Exceptions/SeatNumberException.cs
index 9b6be64..19678d7 100644
--- a/src/Services/Booking/src/Booking/Booking/Exceptions/SeatNumberException.cs
+++ b/src/Services/Booking/src/Booking/Booking/Exceptions/SeatNumberException.cs
@@ -1,4 +1,4 @@
-namespace Booking.Booking.Exceptions;
+namespace Booking.Booking.Exceptions;
using BuildingBlocks.Exception;
diff --git a/src/Services/Booking/src/Booking/Booking/Features/CreatingBook/V1/CreateBooking.cs b/src/Services/Booking/src/Booking/Booking/Features/CreatingBook/V1/CreateBooking.cs
index 7ae1a3d..bde40c0 100644
--- a/src/Services/Booking/src/Booking/Booking/Features/CreatingBook/V1/CreateBooking.cs
+++ b/src/Services/Booking/src/Booking/Booking/Features/CreatingBook/V1/CreateBooking.cs
@@ -133,7 +133,8 @@ internal class CreateBookingCommandHandler : ICommandHandler new FixedWindowRateLimiterOptions
{
- AutoReplenishment = true, PermitLimit = 10, QueueLimit = 0, Window = TimeSpan.FromMinutes(1)
+ AutoReplenishment = true,
+ PermitLimit = 10,
+ QueueLimit = 0,
+ Window = TimeSpan.FromMinutes(1)
}));
});
diff --git a/src/Services/Booking/tests/IntegrationTest/Booking/Features/CreateBookingTests.cs b/src/Services/Booking/tests/IntegrationTest/Booking/Features/CreateBookingTests.cs
index 15aacbf..ef2dc45 100644
--- a/src/Services/Booking/tests/IntegrationTest/Booking/Features/CreateBookingTests.cs
+++ b/src/Services/Booking/tests/IntegrationTest/Booking/Features/CreateBookingTests.cs
@@ -1,4 +1,4 @@
-using System.Threading.Tasks;
+using System.Threading.Tasks;
using Booking.Api;
using Booking.Data;
using BuildingBlocks.Contracts.EventBus.Messages;
diff --git a/src/Services/Booking/tests/IntegrationTest/BookingIntegrationTestBase.cs b/src/Services/Booking/tests/IntegrationTest/BookingIntegrationTestBase.cs
index b3100f2..649e482 100644
--- a/src/Services/Booking/tests/IntegrationTest/BookingIntegrationTestBase.cs
+++ b/src/Services/Booking/tests/IntegrationTest/BookingIntegrationTestBase.cs
@@ -1,4 +1,4 @@
-using Booking.Api;
+using Booking.Api;
using Booking.Data;
using BuildingBlocks.TestBase;
using Xunit;
@@ -6,7 +6,7 @@ using Xunit;
namespace Integration.Test;
[Collection(IntegrationTestCollection.Name)]
-public class BookingIntegrationTestBase: TestReadBase
+public class BookingIntegrationTestBase : TestReadBase
{
public BookingIntegrationTestBase(TestReadFixture integrationTestFixture) : base(integrationTestFixture)
{
diff --git a/src/Services/Booking/tests/IntegrationTest/Fakes/FakeCreateBookingCommand.cs b/src/Services/Booking/tests/IntegrationTest/Fakes/FakeCreateBookingCommand.cs
index 288a383..ff5cb93 100644
--- a/src/Services/Booking/tests/IntegrationTest/Fakes/FakeCreateBookingCommand.cs
+++ b/src/Services/Booking/tests/IntegrationTest/Fakes/FakeCreateBookingCommand.cs
@@ -1,4 +1,4 @@
-using AutoBogus;
+using AutoBogus;
namespace Integration.Test.Fakes;
diff --git a/src/Services/Booking/tests/IntegrationTest/Fakes/FakeFlightResponse.cs b/src/Services/Booking/tests/IntegrationTest/Fakes/FakeFlightResponse.cs
index 9a44330..03588e9 100644
--- a/src/Services/Booking/tests/IntegrationTest/Fakes/FakeFlightResponse.cs
+++ b/src/Services/Booking/tests/IntegrationTest/Fakes/FakeFlightResponse.cs
@@ -1,4 +1,4 @@
-using System;
+using System;
using AutoBogus;
using Flight;
using Google.Protobuf.WellKnownTypes;
diff --git a/src/Services/Booking/tests/IntegrationTest/Fakes/FakeGetAvailableSeatsResponse.cs b/src/Services/Booking/tests/IntegrationTest/Fakes/FakeGetAvailableSeatsResponse.cs
index 205a45c..16333cb 100644
--- a/src/Services/Booking/tests/IntegrationTest/Fakes/FakeGetAvailableSeatsResponse.cs
+++ b/src/Services/Booking/tests/IntegrationTest/Fakes/FakeGetAvailableSeatsResponse.cs
@@ -1,4 +1,4 @@
-using System.Collections.Generic;
+using System.Collections.Generic;
using Flight;
namespace Integration.Test.Fakes;
diff --git a/src/Services/Booking/tests/IntegrationTest/Fakes/FakePassengerResponse.cs b/src/Services/Booking/tests/IntegrationTest/Fakes/FakePassengerResponse.cs
index 31cbd98..c3b2998 100644
--- a/src/Services/Booking/tests/IntegrationTest/Fakes/FakePassengerResponse.cs
+++ b/src/Services/Booking/tests/IntegrationTest/Fakes/FakePassengerResponse.cs
@@ -1,4 +1,4 @@
-namespace Integration.Test.Fakes;
+namespace Integration.Test.Fakes;
using MassTransit;
using Passenger;
diff --git a/src/Services/Booking/tests/IntegrationTest/Fakes/FakeReserveSeatResponse.cs b/src/Services/Booking/tests/IntegrationTest/Fakes/FakeReserveSeatResponse.cs
index ea69f5c..d5e4a1c 100644
--- a/src/Services/Booking/tests/IntegrationTest/Fakes/FakeReserveSeatResponse.cs
+++ b/src/Services/Booking/tests/IntegrationTest/Fakes/FakeReserveSeatResponse.cs
@@ -1,4 +1,4 @@
-namespace Integration.Test.Fakes;
+namespace Integration.Test.Fakes;
using Flight;
using MassTransit;
diff --git a/src/Services/Booking/tests/IntegrationTest/Integration.Test.csproj b/src/Services/Booking/tests/IntegrationTest/Integration.Test.csproj
index 7fe9c29..29cb4cc 100644
--- a/src/Services/Booking/tests/IntegrationTest/Integration.Test.csproj
+++ b/src/Services/Booking/tests/IntegrationTest/Integration.Test.csproj
@@ -1,11 +1,5 @@
-
- net8.0
- false
- enable
-
-
PreserveNewest
@@ -13,7 +7,7 @@
-
+
runtime; build; native; contentfiles; analyzers; buildtransitive
diff --git a/src/Services/Flight/src/Flight.Api/Flight.Api.csproj b/src/Services/Flight/src/Flight.Api/Flight.Api.csproj
index 6ad973f..b21f783 100644
--- a/src/Services/Flight/src/Flight.Api/Flight.Api.csproj
+++ b/src/Services/Flight/src/Flight.Api/Flight.Api.csproj
@@ -1,11 +1,5 @@
-
- net8.0
- enable
- enable
-
-
diff --git a/src/Services/Flight/src/Flight.Api/Program.cs b/src/Services/Flight/src/Flight.Api/Program.cs
index ec8cebd..d1c71d4 100644
--- a/src/Services/Flight/src/Flight.Api/Program.cs
+++ b/src/Services/Flight/src/Flight.Api/Program.cs
@@ -12,7 +12,7 @@ builder.Host.UseDefaultServiceProvider((context, options) =>
options.ValidateOnBuild = true;
});
-builder.AddMinimalEndpoints(assemblies:typeof(FlightRoot).Assembly);
+builder.AddMinimalEndpoints(assemblies: typeof(FlightRoot).Assembly);
builder.AddInfrastructure();
var app = builder.Build();
diff --git a/src/Services/Flight/src/Flight/Aircrafts/ValueObjects/ManufacturingYear.cs b/src/Services/Flight/src/Flight/Aircrafts/ValueObjects/ManufacturingYear.cs
index de90311..3ab80a5 100644
--- a/src/Services/Flight/src/Flight/Aircrafts/ValueObjects/ManufacturingYear.cs
+++ b/src/Services/Flight/src/Flight/Aircrafts/ValueObjects/ManufacturingYear.cs
@@ -5,7 +5,7 @@ using Exceptions;
public record ManufacturingYear
{
public int Value { get; }
-
+
private ManufacturingYear(int value)
{
Value = value;
diff --git a/src/Services/Flight/src/Flight/Airports/Features/CreatingAirport/V1/CreateAirportMongo.cs b/src/Services/Flight/src/Flight/Airports/Features/CreatingAirport/V1/CreateAirportMongo.cs
index f437e3e..ad1df5c 100644
--- a/src/Services/Flight/src/Flight/Airports/Features/CreatingAirport/V1/CreateAirportMongo.cs
+++ b/src/Services/Flight/src/Flight/Airports/Features/CreatingAirport/V1/CreateAirportMongo.cs
@@ -1,4 +1,4 @@
-namespace Flight.Airports.Features.CreatingAirport.V1;
+namespace Flight.Airports.Features.CreatingAirport.V1;
using System;
using System.Threading;
@@ -6,11 +6,11 @@ using System.Threading.Tasks;
using Ardalis.GuardClauses;
using BuildingBlocks.Core.CQRS;
using BuildingBlocks.Core.Event;
-using Exceptions;
-using Models;
using Data;
+using Exceptions;
using MapsterMapper;
using MediatR;
+using Models;
using MongoDB.Driver;
using MongoDB.Driver.Linq;
diff --git a/src/Services/Flight/src/Flight/Airports/Models/AirportReadModel.cs b/src/Services/Flight/src/Flight/Airports/Models/AirportReadModel.cs
index 5356562..14d5a32 100644
--- a/src/Services/Flight/src/Flight/Airports/Models/AirportReadModel.cs
+++ b/src/Services/Flight/src/Flight/Airports/Models/AirportReadModel.cs
@@ -1,4 +1,4 @@
-namespace Flight.Airports.Models;
+namespace Flight.Airports.Models;
using System;
diff --git a/src/Services/Flight/src/Flight/Data/Migrations/20230611230948_initial.cs b/src/Services/Flight/src/Flight/Data/Migrations/20230611230948_initial.cs
index 2c1d574..630f49f 100644
--- a/src/Services/Flight/src/Flight/Data/Migrations/20230611230948_initial.cs
+++ b/src/Services/Flight/src/Flight/Data/Migrations/20230611230948_initial.cs
@@ -1,4 +1,4 @@
-using System;
+using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
diff --git a/src/Services/Flight/src/Flight/Extensions/Infrastructure/InfrastructureExtensions.cs b/src/Services/Flight/src/Flight/Extensions/Infrastructure/InfrastructureExtensions.cs
index 3ad8409..77f040e 100644
--- a/src/Services/Flight/src/Flight/Extensions/Infrastructure/InfrastructureExtensions.cs
+++ b/src/Services/Flight/src/Flight/Extensions/Infrastructure/InfrastructureExtensions.cs
@@ -1,4 +1,4 @@
-using System;
+using System;
using System.Threading.RateLimiting;
using BuildingBlocks.Core;
using BuildingBlocks.EFCore;
@@ -57,7 +57,10 @@ public static class InfrastructureExtensions
partitionKey: httpContext.User.Identity?.Name ?? httpContext.Request.Headers.Host.ToString(),
factory: partition => new FixedWindowRateLimiterOptions
{
- AutoReplenishment = true, PermitLimit = 10, QueueLimit = 0, Window = TimeSpan.FromMinutes(1)
+ AutoReplenishment = true,
+ PermitLimit = 10,
+ QueueLimit = 0,
+ Window = TimeSpan.FromMinutes(1)
}));
});
diff --git a/src/Services/Flight/src/Flight/Flight.csproj b/src/Services/Flight/src/Flight/Flight.csproj
index 042b222..bc49ff9 100644
--- a/src/Services/Flight/src/Flight/Flight.csproj
+++ b/src/Services/Flight/src/Flight/Flight.csproj
@@ -1,18 +1,13 @@
-
-
-
- net8.0
- enable
-
+
-
-
-
+
+
+
all
runtime; build; native; contentfiles; analyzers; buildtransitive
-
+
all
runtime; build; native; contentfiles; analyzers; buildtransitive
diff --git a/src/Services/Flight/src/Flight/Flights/Features/DeletingFlight/V1/DeleteFlightMongo.cs b/src/Services/Flight/src/Flight/Flights/Features/DeletingFlight/V1/DeleteFlightMongo.cs
index b63d1c4..caed0c0 100644
--- a/src/Services/Flight/src/Flight/Flights/Features/DeletingFlight/V1/DeleteFlightMongo.cs
+++ b/src/Services/Flight/src/Flight/Flights/Features/DeletingFlight/V1/DeleteFlightMongo.cs
@@ -1,4 +1,4 @@
-namespace Flight.Flights.Features.DeletingFlight.V1;
+namespace Flight.Flights.Features.DeletingFlight.V1;
using System;
using System.Threading;
diff --git a/src/Services/Flight/src/Flight/Flights/Features/UpdatingFlight/V1/UpdateFlightMongo.cs b/src/Services/Flight/src/Flight/Flights/Features/UpdatingFlight/V1/UpdateFlightMongo.cs
index 35804af..523bfe4 100644
--- a/src/Services/Flight/src/Flight/Flights/Features/UpdatingFlight/V1/UpdateFlightMongo.cs
+++ b/src/Services/Flight/src/Flight/Flights/Features/UpdatingFlight/V1/UpdateFlightMongo.cs
@@ -1,4 +1,4 @@
-namespace Flight.Flights.Features.UpdatingFlight.V1;
+namespace Flight.Flights.Features.UpdatingFlight.V1;
using System;
using System.Threading;
diff --git a/src/Services/Flight/src/Flight/GrpcServer/Services/FlightGrpcServices.cs b/src/Services/Flight/src/Flight/GrpcServer/Services/FlightGrpcServices.cs
index 9a82947..f55dc1e 100644
--- a/src/Services/Flight/src/Flight/GrpcServer/Services/FlightGrpcServices.cs
+++ b/src/Services/Flight/src/Flight/GrpcServer/Services/FlightGrpcServices.cs
@@ -1,4 +1,4 @@
-using System.Threading.Tasks;
+using System.Threading.Tasks;
using Grpc.Core;
using Mapster;
using MediatR;
diff --git a/src/Services/Flight/src/Flight/Seats/Features/CreatingSeat/V1/CreateSeat.cs b/src/Services/Flight/src/Flight/Seats/Features/CreatingSeat/V1/CreateSeat.cs
index f8f5e97..1ab80ff 100644
--- a/src/Services/Flight/src/Flight/Seats/Features/CreatingSeat/V1/CreateSeat.cs
+++ b/src/Services/Flight/src/Flight/Seats/Features/CreatingSeat/V1/CreateSeat.cs
@@ -7,10 +7,9 @@ using Ardalis.GuardClauses;
using BuildingBlocks.Core.CQRS;
using BuildingBlocks.Core.Event;
using BuildingBlocks.Web;
-using Duende.IdentityServer.EntityFramework.Entities;
using Data;
+using Duende.IdentityServer.EntityFramework.Entities;
using Exceptions;
-using Models;
using Flights.ValueObjects;
using FluentValidation;
using Mapster;
@@ -21,6 +20,7 @@ using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Routing;
using Microsoft.EntityFrameworkCore;
+using Models;
using ValueObjects;
public record CreateSeat
diff --git a/src/Services/Flight/src/Flight/Seats/Features/CreatingSeat/V1/CreateSeatMongo.cs b/src/Services/Flight/src/Flight/Seats/Features/CreatingSeat/V1/CreateSeatMongo.cs
index a0f900f..fedbbfc 100644
--- a/src/Services/Flight/src/Flight/Seats/Features/CreatingSeat/V1/CreateSeatMongo.cs
+++ b/src/Services/Flight/src/Flight/Seats/Features/CreatingSeat/V1/CreateSeatMongo.cs
@@ -1,4 +1,4 @@
-namespace Flight.Seats.Features.CreatingSeat.V1;
+namespace Flight.Seats.Features.CreatingSeat.V1;
using System;
using System.Threading;
@@ -8,9 +8,9 @@ using BuildingBlocks.Core.CQRS;
using BuildingBlocks.Core.Event;
using Data;
using Exceptions;
-using Models;
using MapsterMapper;
using MediatR;
+using Models;
using MongoDB.Driver;
using MongoDB.Driver.Linq;
diff --git a/src/Services/Flight/src/Flight/Seats/Features/ReservingSeat/V1/ReserveSeatMongo.cs b/src/Services/Flight/src/Flight/Seats/Features/ReservingSeat/V1/ReserveSeatMongo.cs
index 775724d..a99e438 100644
--- a/src/Services/Flight/src/Flight/Seats/Features/ReservingSeat/V1/ReserveSeatMongo.cs
+++ b/src/Services/Flight/src/Flight/Seats/Features/ReservingSeat/V1/ReserveSeatMongo.cs
@@ -1,4 +1,4 @@
-namespace Flight.Seats.Features.ReservingSeat.V1;
+namespace Flight.Seats.Features.ReservingSeat.V1;
using System;
using System.Threading;
diff --git a/src/Services/Flight/src/Flight/Seats/Models/SeatReadModel.cs b/src/Services/Flight/src/Flight/Seats/Models/SeatReadModel.cs
index 696827c..536b62f 100644
--- a/src/Services/Flight/src/Flight/Seats/Models/SeatReadModel.cs
+++ b/src/Services/Flight/src/Flight/Seats/Models/SeatReadModel.cs
@@ -1,4 +1,4 @@
-namespace Flight.Seats.Models;
+namespace Flight.Seats.Models;
using System;
diff --git a/src/Services/Flight/tests/EndToEndTest/EndToEnd.Test.csproj b/src/Services/Flight/tests/EndToEndTest/EndToEnd.Test.csproj
index 0972296..6e00b08 100644
--- a/src/Services/Flight/tests/EndToEndTest/EndToEnd.Test.csproj
+++ b/src/Services/Flight/tests/EndToEndTest/EndToEnd.Test.csproj
@@ -1,12 +1,5 @@
-
- net8.0
- enable
- enable
- false
-
-
PreserveNewest
@@ -14,7 +7,7 @@
-
+
runtime; build; native; contentfiles; analyzers; buildtransitive
diff --git a/src/Services/Flight/tests/EndToEndTest/Fakes/FakeCreateFlightCommand.cs b/src/Services/Flight/tests/EndToEndTest/Fakes/FakeCreateFlightCommand.cs
index e693899..83df003 100644
--- a/src/Services/Flight/tests/EndToEndTest/Fakes/FakeCreateFlightCommand.cs
+++ b/src/Services/Flight/tests/EndToEndTest/Fakes/FakeCreateFlightCommand.cs
@@ -1,4 +1,4 @@
-using AutoBogus;
+using AutoBogus;
using Flight.Flights.Enums;
namespace EndToEnd.Test.Fakes;
@@ -13,7 +13,7 @@ public sealed class FakeCreateFlightCommand : AutoFaker
{
RuleFor(r => r.Id, _ => NewId.NextGuid());
RuleFor(r => r.FlightNumber, r => "12FF");
- RuleFor(r => r.DepartureAirportId, _ => InitialData.Airports.First().Id);
+ RuleFor(r => r.DepartureAirportId, _ => InitialData.Airports.First().Id);
RuleFor(r => r.ArriveAirportId, _ => InitialData.Airports.Last().Id);
RuleFor(r => r.Status, _ => FlightStatus.Flying);
RuleFor(r => r.AircraftId, _ => InitialData.Aircrafts.First().Id);
diff --git a/src/Services/Flight/tests/EndToEndTest/Fakes/FakeCreateFlightMongoCommand.cs b/src/Services/Flight/tests/EndToEndTest/Fakes/FakeCreateFlightMongoCommand.cs
index 69beec3..603c455 100644
--- a/src/Services/Flight/tests/EndToEndTest/Fakes/FakeCreateFlightMongoCommand.cs
+++ b/src/Services/Flight/tests/EndToEndTest/Fakes/FakeCreateFlightMongoCommand.cs
@@ -1,9 +1,9 @@
-namespace EndToEnd.Test.Fakes;
+namespace EndToEnd.Test.Fakes;
using AutoBogus;
using global::Flight.Data.Seed;
-using global::Flight.Flights.Features.CreatingFlight.V1;
using global::Flight.Flights.Enums;
+using global::Flight.Flights.Features.CreatingFlight.V1;
using MassTransit;
public sealed class FakeCreateFlightMongoCommand : AutoFaker
@@ -12,7 +12,7 @@ public sealed class FakeCreateFlightMongoCommand : AutoFaker
{
RuleFor(r => r.Id, _ => NewId.NextGuid());
RuleFor(r => r.FlightNumber, r => "12FF");
- RuleFor(r => r.DepartureAirportId, _ => InitialData.Airports.First().Id);
+ RuleFor(r => r.DepartureAirportId, _ => InitialData.Airports.First().Id);
RuleFor(r => r.ArriveAirportId, _ => InitialData.Airports.Last().Id);
RuleFor(r => r.Status, _ => FlightStatus.Flying);
RuleFor(r => r.AircraftId, _ => InitialData.Aircrafts.First().Id);
diff --git a/src/Services/Flight/tests/EndToEndTest/Flight/Features/CreateFlightTests.cs b/src/Services/Flight/tests/EndToEndTest/Flight/Features/CreateFlightTests.cs
index 16fb2b0..c44f367 100644
--- a/src/Services/Flight/tests/EndToEndTest/Flight/Features/CreateFlightTests.cs
+++ b/src/Services/Flight/tests/EndToEndTest/Flight/Features/CreateFlightTests.cs
@@ -1,4 +1,4 @@
-using System.Net;
+using System.Net;
using System.Net.Http.Json;
using BuildingBlocks.TestBase;
using EndToEnd.Test.Fakes;
diff --git a/src/Services/Flight/tests/EndToEndTest/Flight/Features/GetFlightByIdTests.cs b/src/Services/Flight/tests/EndToEndTest/Flight/Features/GetFlightByIdTests.cs
index 1f7d4be..232d738 100644
--- a/src/Services/Flight/tests/EndToEndTest/Flight/Features/GetFlightByIdTests.cs
+++ b/src/Services/Flight/tests/EndToEndTest/Flight/Features/GetFlightByIdTests.cs
@@ -1,4 +1,4 @@
-using System.Net;
+using System.Net;
using BuildingBlocks.TestBase;
using EndToEnd.Test.Fakes;
using EndToEnd.Test.Routes;
@@ -9,7 +9,7 @@ using Xunit;
namespace EndToEnd.Test.Flight.Features;
-public class GetFlightByIdTests: FlightEndToEndTestBase
+public class GetFlightByIdTests : FlightEndToEndTestBase
{
public GetFlightByIdTests(TestFixture integrationTestFixture) : base(integrationTestFixture)
{
diff --git a/src/Services/Flight/tests/EndToEndTest/FlightEndToEndTestBase.cs b/src/Services/Flight/tests/EndToEndTest/FlightEndToEndTestBase.cs
index 45e067f..35c6400 100644
--- a/src/Services/Flight/tests/EndToEndTest/FlightEndToEndTestBase.cs
+++ b/src/Services/Flight/tests/EndToEndTest/FlightEndToEndTestBase.cs
@@ -1,4 +1,4 @@
-using BuildingBlocks.TestBase;
+using BuildingBlocks.TestBase;
using Flight.Api;
using Flight.Data;
using Xunit;
@@ -6,7 +6,7 @@ using Xunit;
namespace EndToEnd.Test;
[Collection(EndToEndTestCollection.Name)]
-public class FlightEndToEndTestBase: TestBase
+public class FlightEndToEndTestBase : TestBase
{
public FlightEndToEndTestBase(TestFixture integrationTestFixture) : base(integrationTestFixture)
{
diff --git a/src/Services/Flight/tests/EndToEndTest/Routes/ApiRoutes.cs b/src/Services/Flight/tests/EndToEndTest/Routes/ApiRoutes.cs
index 4bbf880..0517f29 100644
--- a/src/Services/Flight/tests/EndToEndTest/Routes/ApiRoutes.cs
+++ b/src/Services/Flight/tests/EndToEndTest/Routes/ApiRoutes.cs
@@ -1,4 +1,4 @@
-namespace EndToEnd.Test.Routes;
+namespace EndToEnd.Test.Routes;
public static class ApiRoutes
{
diff --git a/src/Services/Flight/tests/IntegrationTest/Airport/Features/CreateAirportTests.cs b/src/Services/Flight/tests/IntegrationTest/Airport/Features/CreateAirportTests.cs
index 90e4fe6..fbc913c 100644
--- a/src/Services/Flight/tests/IntegrationTest/Airport/Features/CreateAirportTests.cs
+++ b/src/Services/Flight/tests/IntegrationTest/Airport/Features/CreateAirportTests.cs
@@ -1,4 +1,4 @@
-using System.Threading.Tasks;
+using System.Threading.Tasks;
using BuildingBlocks.Contracts.EventBus.Messages;
using BuildingBlocks.TestBase;
using Flight.Api;
diff --git a/src/Services/Flight/tests/IntegrationTest/Fakes/FakeCreateAirportCommand.cs b/src/Services/Flight/tests/IntegrationTest/Fakes/FakeCreateAirportCommand.cs
index 9c387b7..2cc7ae2 100644
--- a/src/Services/Flight/tests/IntegrationTest/Fakes/FakeCreateAirportCommand.cs
+++ b/src/Services/Flight/tests/IntegrationTest/Fakes/FakeCreateAirportCommand.cs
@@ -1,4 +1,4 @@
-using AutoBogus;
+using AutoBogus;
namespace Integration.Test.Fakes;
diff --git a/src/Services/Flight/tests/IntegrationTest/Fakes/FakeCreateFlightCommand.cs b/src/Services/Flight/tests/IntegrationTest/Fakes/FakeCreateFlightCommand.cs
index 6655103..5e2793e 100644
--- a/src/Services/Flight/tests/IntegrationTest/Fakes/FakeCreateFlightCommand.cs
+++ b/src/Services/Flight/tests/IntegrationTest/Fakes/FakeCreateFlightCommand.cs
@@ -1,4 +1,4 @@
-using AutoBogus;
+using AutoBogus;
using Flight.Flights.Enums;
namespace Integration.Test.Fakes;
@@ -17,6 +17,6 @@ public sealed class FakeCreateFlightCommand : AutoFaker
RuleFor(r => r.DepartureAirportId, _ => InitialData.Airports.First().Id);
RuleFor(r => r.ArriveAirportId, _ => InitialData.Airports.Last().Id);
RuleFor(r => r.Status, _ => FlightStatus.Flying);
- RuleFor(r => r.AircraftId, _ => InitialData.Aircrafts.First().Id);
+ RuleFor(r => r.AircraftId, _ => InitialData.Aircrafts.First().Id);
}
}
diff --git a/src/Services/Flight/tests/IntegrationTest/Fakes/FakeCreateFlightMongoCommand.cs b/src/Services/Flight/tests/IntegrationTest/Fakes/FakeCreateFlightMongoCommand.cs
index aaae518..921b810 100644
--- a/src/Services/Flight/tests/IntegrationTest/Fakes/FakeCreateFlightMongoCommand.cs
+++ b/src/Services/Flight/tests/IntegrationTest/Fakes/FakeCreateFlightMongoCommand.cs
@@ -1,4 +1,4 @@
-namespace Integration.Test.Fakes;
+namespace Integration.Test.Fakes;
using System.Linq;
using AutoBogus;
@@ -13,7 +13,7 @@ public sealed class FakeCreateFlightMongoCommand : AutoFaker
{
RuleFor(r => r.Id, _ => NewId.NextGuid());
RuleFor(r => r.FlightNumber, r => "12FF");
- RuleFor(r => r.DepartureAirportId, _ => InitialData.Airports.First().Id);
+ RuleFor(r => r.DepartureAirportId, _ => InitialData.Airports.First().Id);
RuleFor(r => r.ArriveAirportId, _ => InitialData.Airports.Last().Id);
RuleFor(r => r.Status, _ => FlightStatus.Flying);
RuleFor(r => r.AircraftId, _ => InitialData.Aircrafts.First().Id);
diff --git a/src/Services/Flight/tests/IntegrationTest/Fakes/FakeCreateSeatCommand.cs b/src/Services/Flight/tests/IntegrationTest/Fakes/FakeCreateSeatCommand.cs
index 6ce1da0..1f68428 100644
--- a/src/Services/Flight/tests/IntegrationTest/Fakes/FakeCreateSeatCommand.cs
+++ b/src/Services/Flight/tests/IntegrationTest/Fakes/FakeCreateSeatCommand.cs
@@ -1,4 +1,4 @@
-using AutoBogus;
+using AutoBogus;
using Flight.Seats.Enums;
namespace Integration.Test.Fakes;
diff --git a/src/Services/Flight/tests/IntegrationTest/Fakes/FakeCreateSeatMongoCommand.cs b/src/Services/Flight/tests/IntegrationTest/Fakes/FakeCreateSeatMongoCommand.cs
index 0224d32..441d090 100644
--- a/src/Services/Flight/tests/IntegrationTest/Fakes/FakeCreateSeatMongoCommand.cs
+++ b/src/Services/Flight/tests/IntegrationTest/Fakes/FakeCreateSeatMongoCommand.cs
@@ -1,4 +1,4 @@
-namespace Integration.Test.Fakes;
+namespace Integration.Test.Fakes;
using System;
using AutoBogus;
diff --git a/src/Services/Flight/tests/IntegrationTest/Fakes/FakeUpdateFlightCommand.cs b/src/Services/Flight/tests/IntegrationTest/Fakes/FakeUpdateFlightCommand.cs
index 28e54a6..e6ca140 100644
--- a/src/Services/Flight/tests/IntegrationTest/Fakes/FakeUpdateFlightCommand.cs
+++ b/src/Services/Flight/tests/IntegrationTest/Fakes/FakeUpdateFlightCommand.cs
@@ -1,4 +1,4 @@
-using AutoBogus;
+using AutoBogus;
namespace Integration.Test.Fakes;
diff --git a/src/Services/Flight/tests/IntegrationTest/Flight/Features/CreateFlightTests.cs b/src/Services/Flight/tests/IntegrationTest/Flight/Features/CreateFlightTests.cs
index a134210..d7b0576 100644
--- a/src/Services/Flight/tests/IntegrationTest/Flight/Features/CreateFlightTests.cs
+++ b/src/Services/Flight/tests/IntegrationTest/Flight/Features/CreateFlightTests.cs
@@ -1,4 +1,4 @@
-using System.Threading.Tasks;
+using System.Threading.Tasks;
using BuildingBlocks.Contracts.EventBus.Messages;
using BuildingBlocks.TestBase;
using Flight.Api;
diff --git a/src/Services/Flight/tests/IntegrationTest/Flight/Features/GetAvailableFlightsTests.cs b/src/Services/Flight/tests/IntegrationTest/Flight/Features/GetAvailableFlightsTests.cs
index 31aa6a8..5fc24da 100644
--- a/src/Services/Flight/tests/IntegrationTest/Flight/Features/GetAvailableFlightsTests.cs
+++ b/src/Services/Flight/tests/IntegrationTest/Flight/Features/GetAvailableFlightsTests.cs
@@ -1,4 +1,4 @@
-using System.Linq;
+using System.Linq;
using System.Threading.Tasks;
using BuildingBlocks.TestBase;
using Flight.Api;
diff --git a/src/Services/Flight/tests/IntegrationTest/Flight/Features/GetFlightByIdTests.cs b/src/Services/Flight/tests/IntegrationTest/Flight/Features/GetFlightByIdTests.cs
index c115c55..c0d1fd8 100644
--- a/src/Services/Flight/tests/IntegrationTest/Flight/Features/GetFlightByIdTests.cs
+++ b/src/Services/Flight/tests/IntegrationTest/Flight/Features/GetFlightByIdTests.cs
@@ -1,4 +1,4 @@
-using System.Threading.Tasks;
+using System.Threading.Tasks;
using BuildingBlocks.TestBase;
using Flight;
using Flight.Api;
@@ -49,7 +49,7 @@ public class GetFlightByIdTests : FlightIntegrationTestBase
var flightGrpcClient = new FlightGrpcService.FlightGrpcServiceClient(Fixture.Channel);
// Act
- var response = await flightGrpcClient.GetByIdAsync(new GetByIdRequest {Id = command.Id.ToString()}).ResponseAsync;
+ var response = await flightGrpcClient.GetByIdAsync(new GetByIdRequest { Id = command.Id.ToString() }).ResponseAsync;
// Assert
response?.Should().NotBeNull();
diff --git a/src/Services/Flight/tests/IntegrationTest/FlightIntegrationTestBase.cs b/src/Services/Flight/tests/IntegrationTest/FlightIntegrationTestBase.cs
index af50f33..f6bc1c0 100644
--- a/src/Services/Flight/tests/IntegrationTest/FlightIntegrationTestBase.cs
+++ b/src/Services/Flight/tests/IntegrationTest/FlightIntegrationTestBase.cs
@@ -1,4 +1,4 @@
-using BuildingBlocks.TestBase;
+using BuildingBlocks.TestBase;
using Flight.Api;
using Flight.Data;
using Xunit;
@@ -6,7 +6,7 @@ using Xunit;
namespace Integration.Test;
[Collection(IntegrationTestCollection.Name)]
-public class FlightIntegrationTestBase: TestBase
+public class FlightIntegrationTestBase : TestBase
{
public FlightIntegrationTestBase(TestFixture integrationTestFixture) : base(integrationTestFixture)
{
diff --git a/src/Services/Flight/tests/IntegrationTest/Integration.Test.csproj b/src/Services/Flight/tests/IntegrationTest/Integration.Test.csproj
index d712577..6e00b08 100644
--- a/src/Services/Flight/tests/IntegrationTest/Integration.Test.csproj
+++ b/src/Services/Flight/tests/IntegrationTest/Integration.Test.csproj
@@ -1,11 +1,5 @@
-
- net8.0
- false
- enable
-
-
PreserveNewest
@@ -13,7 +7,7 @@
-
+
runtime; build; native; contentfiles; analyzers; buildtransitive
diff --git a/src/Services/Flight/tests/IntegrationTest/Seat/Features/GetAvailableSeatsTests.cs b/src/Services/Flight/tests/IntegrationTest/Seat/Features/GetAvailableSeatsTests.cs
index 881bcda..c1d80dc 100644
--- a/src/Services/Flight/tests/IntegrationTest/Seat/Features/GetAvailableSeatsTests.cs
+++ b/src/Services/Flight/tests/IntegrationTest/Seat/Features/GetAvailableSeatsTests.cs
@@ -1,4 +1,4 @@
-using System.Threading.Tasks;
+using System.Threading.Tasks;
using BuildingBlocks.TestBase;
using Flight;
using Flight.Api;
@@ -34,7 +34,7 @@ public class GetAvailableSeatsTests : FlightIntegrationTestBase
var flightGrpcClient = new FlightGrpcService.FlightGrpcServiceClient(Fixture.Channel);
// Act
- var response = await flightGrpcClient.GetAvailableSeatsAsync(new GetAvailableSeatsRequest{FlightId = flightCommand.Id.ToString()});
+ var response = await flightGrpcClient.GetAvailableSeatsAsync(new GetAvailableSeatsRequest { FlightId = flightCommand.Id.ToString() });
// Assert
response?.Should().NotBeNull();
diff --git a/src/Services/Flight/tests/UnitTest/Aircraft/Features/CreateAircraftTests/CreateAircraftCommandHandlerTests.cs b/src/Services/Flight/tests/UnitTest/Aircraft/Features/CreateAircraftTests/CreateAircraftCommandHandlerTests.cs
index 041aab1..6c29941 100644
--- a/src/Services/Flight/tests/UnitTest/Aircraft/Features/CreateAircraftTests/CreateAircraftCommandHandlerTests.cs
+++ b/src/Services/Flight/tests/UnitTest/Aircraft/Features/CreateAircraftTests/CreateAircraftCommandHandlerTests.cs
@@ -1,4 +1,4 @@
-using System;
+using System;
using System.Threading;
using System.Threading.Tasks;
using FluentAssertions;
diff --git a/src/Services/Flight/tests/UnitTest/Aircraft/Features/CreateAircraftTests/CreateAircraftCommandValidatorTests.cs b/src/Services/Flight/tests/UnitTest/Aircraft/Features/CreateAircraftTests/CreateAircraftCommandValidatorTests.cs
index 8937533..c68142a 100644
--- a/src/Services/Flight/tests/UnitTest/Aircraft/Features/CreateAircraftTests/CreateAircraftCommandValidatorTests.cs
+++ b/src/Services/Flight/tests/UnitTest/Aircraft/Features/CreateAircraftTests/CreateAircraftCommandValidatorTests.cs
@@ -1,4 +1,4 @@
-using FluentAssertions;
+using FluentAssertions;
using FluentValidation.TestHelper;
using Unit.Test.Common;
using Unit.Test.Fakes;
diff --git a/src/Services/Flight/tests/UnitTest/Airport/Features/CreateAirportTests/CreateAirportCommandValidatorTests.cs b/src/Services/Flight/tests/UnitTest/Airport/Features/CreateAirportTests/CreateAirportCommandValidatorTests.cs
index 3d62eaf..9fa877e 100644
--- a/src/Services/Flight/tests/UnitTest/Airport/Features/CreateAirportTests/CreateAirportCommandValidatorTests.cs
+++ b/src/Services/Flight/tests/UnitTest/Airport/Features/CreateAirportTests/CreateAirportCommandValidatorTests.cs
@@ -1,4 +1,4 @@
-using FluentAssertions;
+using FluentAssertions;
using FluentValidation.TestHelper;
using Unit.Test.Common;
using Unit.Test.Fakes;
diff --git a/src/Services/Flight/tests/UnitTest/Common/MapperFactory.cs b/src/Services/Flight/tests/UnitTest/Common/MapperFactory.cs
index 7145fa9..b848805 100644
--- a/src/Services/Flight/tests/UnitTest/Common/MapperFactory.cs
+++ b/src/Services/Flight/tests/UnitTest/Common/MapperFactory.cs
@@ -1,4 +1,4 @@
-using Flight;
+using Flight;
using Mapster;
using MapsterMapper;
diff --git a/src/Services/Flight/tests/UnitTest/Common/UnitTestFixture.cs b/src/Services/Flight/tests/UnitTest/Common/UnitTestFixture.cs
index 08c9e44..57efaa6 100644
--- a/src/Services/Flight/tests/UnitTest/Common/UnitTestFixture.cs
+++ b/src/Services/Flight/tests/UnitTest/Common/UnitTestFixture.cs
@@ -1,4 +1,4 @@
-using System;
+using System;
using Flight.Data;
using MapsterMapper;
using Xunit;
diff --git a/src/Services/Flight/tests/UnitTest/Fakes/FakeCreateAirportCommand.cs b/src/Services/Flight/tests/UnitTest/Fakes/FakeCreateAirportCommand.cs
index 776a276..f1fd415 100644
--- a/src/Services/Flight/tests/UnitTest/Fakes/FakeCreateAirportCommand.cs
+++ b/src/Services/Flight/tests/UnitTest/Fakes/FakeCreateAirportCommand.cs
@@ -1,4 +1,4 @@
-using AutoBogus;
+using AutoBogus;
namespace Unit.Test.Fakes;
diff --git a/src/Services/Flight/tests/UnitTest/Fakes/FakeCreateFlightCommand.cs b/src/Services/Flight/tests/UnitTest/Fakes/FakeCreateFlightCommand.cs
index d16dae7..1362b10 100644
--- a/src/Services/Flight/tests/UnitTest/Fakes/FakeCreateFlightCommand.cs
+++ b/src/Services/Flight/tests/UnitTest/Fakes/FakeCreateFlightCommand.cs
@@ -1,4 +1,4 @@
-using AutoBogus;
+using AutoBogus;
namespace Unit.Test.Fakes;
diff --git a/src/Services/Flight/tests/UnitTest/Fakes/FakeCreateSeatCommand.cs b/src/Services/Flight/tests/UnitTest/Fakes/FakeCreateSeatCommand.cs
index 4cab5f0..7810d1b 100644
--- a/src/Services/Flight/tests/UnitTest/Fakes/FakeCreateSeatCommand.cs
+++ b/src/Services/Flight/tests/UnitTest/Fakes/FakeCreateSeatCommand.cs
@@ -1,4 +1,4 @@
-using AutoBogus;
+using AutoBogus;
using Flight.Seats.Enums;
namespace Unit.Test.Fakes;
diff --git a/src/Services/Flight/tests/UnitTest/Fakes/FakeValidateCreateAircraftCommand.cs b/src/Services/Flight/tests/UnitTest/Fakes/FakeValidateCreateAircraftCommand.cs
index 3e4cf55..d233486 100644
--- a/src/Services/Flight/tests/UnitTest/Fakes/FakeValidateCreateAircraftCommand.cs
+++ b/src/Services/Flight/tests/UnitTest/Fakes/FakeValidateCreateAircraftCommand.cs
@@ -1,4 +1,4 @@
-using AutoBogus;
+using AutoBogus;
namespace Unit.Test.Fakes;
diff --git a/src/Services/Flight/tests/UnitTest/Fakes/FakeValidateCreateAirportCommand.cs b/src/Services/Flight/tests/UnitTest/Fakes/FakeValidateCreateAirportCommand.cs
index 59003af..508e85c 100644
--- a/src/Services/Flight/tests/UnitTest/Fakes/FakeValidateCreateAirportCommand.cs
+++ b/src/Services/Flight/tests/UnitTest/Fakes/FakeValidateCreateAirportCommand.cs
@@ -1,4 +1,4 @@
-using AutoBogus;
+using AutoBogus;
namespace Unit.Test.Fakes;
diff --git a/src/Services/Flight/tests/UnitTest/Fakes/FakeValidateCreateFlightCommand.cs b/src/Services/Flight/tests/UnitTest/Fakes/FakeValidateCreateFlightCommand.cs
index 076045b..007d7fd 100644
--- a/src/Services/Flight/tests/UnitTest/Fakes/FakeValidateCreateFlightCommand.cs
+++ b/src/Services/Flight/tests/UnitTest/Fakes/FakeValidateCreateFlightCommand.cs
@@ -1,4 +1,4 @@
-using System;
+using System;
using AutoBogus;
using Flight.Flights.Enums;
diff --git a/src/Services/Flight/tests/UnitTest/Fakes/FakeValidateCreateSeatCommand.cs b/src/Services/Flight/tests/UnitTest/Fakes/FakeValidateCreateSeatCommand.cs
index 67e74be..f7985a9 100644
--- a/src/Services/Flight/tests/UnitTest/Fakes/FakeValidateCreateSeatCommand.cs
+++ b/src/Services/Flight/tests/UnitTest/Fakes/FakeValidateCreateSeatCommand.cs
@@ -1,4 +1,4 @@
-using AutoBogus;
+using AutoBogus;
using Flight.Seats.Enums;
namespace Unit.Test.Fakes;
diff --git a/src/Services/Flight/tests/UnitTest/Flight/Features/Domains/CreateFlightTests.cs b/src/Services/Flight/tests/UnitTest/Flight/Features/Domains/CreateFlightTests.cs
index 621d55a..bd4b3f6 100644
--- a/src/Services/Flight/tests/UnitTest/Flight/Features/Domains/CreateFlightTests.cs
+++ b/src/Services/Flight/tests/UnitTest/Flight/Features/Domains/CreateFlightTests.cs
@@ -1,4 +1,4 @@
-namespace Unit.Test.Flight.Features.Domains
+namespace Unit.Test.Flight.Features.Domains
{
using System.Linq;
using FluentAssertions;
diff --git a/src/Services/Flight/tests/UnitTest/Flight/Features/Handlers/CreateFlight/CreateFlightCommandValidatorTests.cs b/src/Services/Flight/tests/UnitTest/Flight/Features/Handlers/CreateFlight/CreateFlightCommandValidatorTests.cs
index 98b05a1..c339532 100644
--- a/src/Services/Flight/tests/UnitTest/Flight/Features/Handlers/CreateFlight/CreateFlightCommandValidatorTests.cs
+++ b/src/Services/Flight/tests/UnitTest/Flight/Features/Handlers/CreateFlight/CreateFlightCommandValidatorTests.cs
@@ -1,4 +1,4 @@
-namespace Unit.Test.Flight.Features.Handlers.CreateFlight;
+namespace Unit.Test.Flight.Features.Handlers.CreateFlight;
using FluentAssertions;
using FluentValidation.TestHelper;
diff --git a/src/Services/Flight/tests/UnitTest/Seat/Features/CreateSeatCommandValidatorTests.cs b/src/Services/Flight/tests/UnitTest/Seat/Features/CreateSeatCommandValidatorTests.cs
index 3296670..79bb087 100644
--- a/src/Services/Flight/tests/UnitTest/Seat/Features/CreateSeatCommandValidatorTests.cs
+++ b/src/Services/Flight/tests/UnitTest/Seat/Features/CreateSeatCommandValidatorTests.cs
@@ -1,4 +1,4 @@
-using FluentAssertions;
+using FluentAssertions;
using FluentValidation.TestHelper;
using Unit.Test.Common;
using Unit.Test.Fakes;
diff --git a/src/Services/Flight/tests/UnitTest/Unit.Test.csproj b/src/Services/Flight/tests/UnitTest/Unit.Test.csproj
index d712577..6e00b08 100644
--- a/src/Services/Flight/tests/UnitTest/Unit.Test.csproj
+++ b/src/Services/Flight/tests/UnitTest/Unit.Test.csproj
@@ -1,11 +1,5 @@
-
- net8.0
- false
- enable
-
-
PreserveNewest
@@ -13,7 +7,7 @@
-
+
runtime; build; native; contentfiles; analyzers; buildtransitive
diff --git a/src/Services/Identity/src/Identity.Api/Identity.Api.csproj b/src/Services/Identity/src/Identity.Api/Identity.Api.csproj
index 9f655f0..af738c1 100644
--- a/src/Services/Identity/src/Identity.Api/Identity.Api.csproj
+++ b/src/Services/Identity/src/Identity.Api/Identity.Api.csproj
@@ -1,11 +1,5 @@
-
- net8.0
- enable
- enable
-
-
diff --git a/src/Services/Identity/src/Identity.Api/Program.cs b/src/Services/Identity/src/Identity.Api/Program.cs
index af79076..20c7bed 100644
--- a/src/Services/Identity/src/Identity.Api/Program.cs
+++ b/src/Services/Identity/src/Identity.Api/Program.cs
@@ -12,7 +12,7 @@ builder.Host.UseDefaultServiceProvider((context, options) =>
options.ValidateOnBuild = true;
});
-builder.AddMinimalEndpoints(assemblies:typeof(IdentityRoot).Assembly);
+builder.AddMinimalEndpoints(assemblies: typeof(IdentityRoot).Assembly);
builder.AddInfrastructure();
var app = builder.Build();
diff --git a/src/Services/Identity/src/Identity/Configurations/AuthOptions.cs b/src/Services/Identity/src/Identity/Configurations/AuthOptions.cs
index ecf07cc..c7b7605 100644
--- a/src/Services/Identity/src/Identity/Configurations/AuthOptions.cs
+++ b/src/Services/Identity/src/Identity/Configurations/AuthOptions.cs
@@ -1,4 +1,4 @@
-namespace Identity.Configurations;
+namespace Identity.Configurations;
public class AuthOptions
{
diff --git a/src/Services/Identity/src/Identity/Data/Configurations/RoleClaimConfiguration.cs b/src/Services/Identity/src/Identity/Data/Configurations/RoleClaimConfiguration.cs
index d9e285e..58fabd9 100644
--- a/src/Services/Identity/src/Identity/Data/Configurations/RoleClaimConfiguration.cs
+++ b/src/Services/Identity/src/Identity/Data/Configurations/RoleClaimConfiguration.cs
@@ -1,4 +1,4 @@
-namespace Identity.Data.Configurations;
+namespace Identity.Data.Configurations;
using Identity.Models;
using Microsoft.EntityFrameworkCore;
diff --git a/src/Services/Identity/src/Identity/Data/Configurations/RoleConfiguration.cs b/src/Services/Identity/src/Identity/Data/Configurations/RoleConfiguration.cs
index a52b7d0..991cdea 100644
--- a/src/Services/Identity/src/Identity/Data/Configurations/RoleConfiguration.cs
+++ b/src/Services/Identity/src/Identity/Data/Configurations/RoleConfiguration.cs
@@ -1,4 +1,4 @@
-namespace Identity.Data.Configurations;
+namespace Identity.Data.Configurations;
using Identity.Models;
using Microsoft.EntityFrameworkCore;
diff --git a/src/Services/Identity/src/Identity/Data/Configurations/UserClaimConfiguration.cs b/src/Services/Identity/src/Identity/Data/Configurations/UserClaimConfiguration.cs
index dee679c..40f2d30 100644
--- a/src/Services/Identity/src/Identity/Data/Configurations/UserClaimConfiguration.cs
+++ b/src/Services/Identity/src/Identity/Data/Configurations/UserClaimConfiguration.cs
@@ -1,4 +1,4 @@
-namespace Identity.Data.Configurations;
+namespace Identity.Data.Configurations;
using Identity.Models;
using Microsoft.EntityFrameworkCore;
diff --git a/src/Services/Identity/src/Identity/Data/Configurations/UserConfiguration.cs b/src/Services/Identity/src/Identity/Data/Configurations/UserConfiguration.cs
index 71169b0..9a66611 100644
--- a/src/Services/Identity/src/Identity/Data/Configurations/UserConfiguration.cs
+++ b/src/Services/Identity/src/Identity/Data/Configurations/UserConfiguration.cs
@@ -1,4 +1,4 @@
-namespace Identity.Data.Configurations;
+namespace Identity.Data.Configurations;
using Identity.Models;
using Microsoft.EntityFrameworkCore;
diff --git a/src/Services/Identity/src/Identity/Data/Configurations/UserLoginConfiguration.cs b/src/Services/Identity/src/Identity/Data/Configurations/UserLoginConfiguration.cs
index d5966d5..4b556b0 100644
--- a/src/Services/Identity/src/Identity/Data/Configurations/UserLoginConfiguration.cs
+++ b/src/Services/Identity/src/Identity/Data/Configurations/UserLoginConfiguration.cs
@@ -1,4 +1,4 @@
-namespace Identity.Data.Configurations;
+namespace Identity.Data.Configurations;
using Identity.Models;
using Microsoft.EntityFrameworkCore;
diff --git a/src/Services/Identity/src/Identity/Data/Configurations/UserRoleConfiguration.cs b/src/Services/Identity/src/Identity/Data/Configurations/UserRoleConfiguration.cs
index 3f8ca2e..c0f4bf8 100644
--- a/src/Services/Identity/src/Identity/Data/Configurations/UserRoleConfiguration.cs
+++ b/src/Services/Identity/src/Identity/Data/Configurations/UserRoleConfiguration.cs
@@ -1,4 +1,4 @@
-namespace Identity.Data.Configurations;
+namespace Identity.Data.Configurations;
using Identity.Models;
using Microsoft.EntityFrameworkCore;
diff --git a/src/Services/Identity/src/Identity/Data/Configurations/UserTokenConfiguration.cs b/src/Services/Identity/src/Identity/Data/Configurations/UserTokenConfiguration.cs
index a0a8b14..380151e 100644
--- a/src/Services/Identity/src/Identity/Data/Configurations/UserTokenConfiguration.cs
+++ b/src/Services/Identity/src/Identity/Data/Configurations/UserTokenConfiguration.cs
@@ -1,4 +1,4 @@
-namespace Identity.Data.Configurations;
+namespace Identity.Data.Configurations;
using Identity.Models;
using Microsoft.EntityFrameworkCore;
diff --git a/src/Services/Identity/src/Identity/Data/IdentityContext.cs b/src/Services/Identity/src/Identity/Data/IdentityContext.cs
index b896a98..e0f3237 100644
--- a/src/Services/Identity/src/Identity/Data/IdentityContext.cs
+++ b/src/Services/Identity/src/Identity/Data/IdentityContext.cs
@@ -41,7 +41,8 @@ public sealed class IdentityContext : IdentityDbContext new FixedWindowRateLimiterOptions
{
- AutoReplenishment = true, PermitLimit = 10, QueueLimit = 0, Window = TimeSpan.FromMinutes(1)
+ AutoReplenishment = true,
+ PermitLimit = 10,
+ QueueLimit = 0,
+ Window = TimeSpan.FromMinutes(1)
}));
});
diff --git a/src/Services/Identity/src/Identity/Identity.csproj b/src/Services/Identity/src/Identity/Identity.csproj
index 64fec22..4e81692 100644
--- a/src/Services/Identity/src/Identity/Identity.csproj
+++ b/src/Services/Identity/src/Identity/Identity.csproj
@@ -1,12 +1,7 @@
-
- net8.0
- enable
-
-
-
+
all
runtime; build; native; contentfiles; analyzers; buildtransitive
diff --git a/src/Services/Identity/src/Identity/Identity/Features/IdentityMappings.cs b/src/Services/Identity/src/Identity/Identity/Features/IdentityMappings.cs
index 166ccac..906485a 100644
--- a/src/Services/Identity/src/Identity/Identity/Features/IdentityMappings.cs
+++ b/src/Services/Identity/src/Identity/Identity/Features/IdentityMappings.cs
@@ -1,4 +1,4 @@
-using Mapster;
+using Mapster;
namespace Identity.Identity.Features;
diff --git a/src/Services/Identity/src/Identity/Identity/Models/Role.cs b/src/Services/Identity/src/Identity/Identity/Models/Role.cs
index 832db45..3e14e3d 100644
--- a/src/Services/Identity/src/Identity/Identity/Models/Role.cs
+++ b/src/Services/Identity/src/Identity/Identity/Models/Role.cs
@@ -1,10 +1,10 @@
-namespace Identity.Identity.Models;
+namespace Identity.Identity.Models;
using System;
using BuildingBlocks.Core.Model;
using Microsoft.AspNetCore.Identity;
-public class Role: IdentityRole, IVersion
+public class Role : IdentityRole, IVersion
{
public long Version { get; set; }
}
diff --git a/src/Services/Identity/src/Identity/Identity/Models/RoleClaim.cs b/src/Services/Identity/src/Identity/Identity/Models/RoleClaim.cs
index 1e2110f..cc59e12 100644
--- a/src/Services/Identity/src/Identity/Identity/Models/RoleClaim.cs
+++ b/src/Services/Identity/src/Identity/Identity/Models/RoleClaim.cs
@@ -1,10 +1,10 @@
-namespace Identity.Identity.Models;
+namespace Identity.Identity.Models;
using System;
using BuildingBlocks.Core.Model;
using Microsoft.AspNetCore.Identity;
-public class RoleClaim: IdentityRoleClaim, IVersion
+public class RoleClaim : IdentityRoleClaim, IVersion
{
public long Version { get; set; }
}
diff --git a/src/Services/Identity/src/Identity/Identity/Models/UserClaim.cs b/src/Services/Identity/src/Identity/Identity/Models/UserClaim.cs
index 1f9398e..c77e433 100644
--- a/src/Services/Identity/src/Identity/Identity/Models/UserClaim.cs
+++ b/src/Services/Identity/src/Identity/Identity/Models/UserClaim.cs
@@ -1,10 +1,10 @@
-namespace Identity.Identity.Models;
+namespace Identity.Identity.Models;
using System;
using BuildingBlocks.Core.Model;
using Microsoft.AspNetCore.Identity;
-public class UserClaim: IdentityUserClaim, IVersion
+public class UserClaim : IdentityUserClaim, IVersion
{
public long Version { get; set; }
}
diff --git a/src/Services/Identity/src/Identity/Identity/Models/UserLogin.cs b/src/Services/Identity/src/Identity/Identity/Models/UserLogin.cs
index e3191d5..4d9fc22 100644
--- a/src/Services/Identity/src/Identity/Identity/Models/UserLogin.cs
+++ b/src/Services/Identity/src/Identity/Identity/Models/UserLogin.cs
@@ -1,10 +1,10 @@
-namespace Identity.Identity.Models;
+namespace Identity.Identity.Models;
using System;
using BuildingBlocks.Core.Model;
using Microsoft.AspNetCore.Identity;
-public class UserLogin: IdentityUserLogin, IVersion
+public class UserLogin : IdentityUserLogin, IVersion
{
public long Version { get; set; }
}
diff --git a/src/Services/Identity/src/Identity/Identity/Models/UserRole.cs b/src/Services/Identity/src/Identity/Identity/Models/UserRole.cs
index 6de6778..3f0adf3 100644
--- a/src/Services/Identity/src/Identity/Identity/Models/UserRole.cs
+++ b/src/Services/Identity/src/Identity/Identity/Models/UserRole.cs
@@ -1,10 +1,10 @@
-namespace Identity.Identity.Models;
+namespace Identity.Identity.Models;
using System;
using BuildingBlocks.Core.Model;
using Microsoft.AspNetCore.Identity;
-public class UserRole: IdentityUserRole, IVersion
+public class UserRole : IdentityUserRole, IVersion
{
public long Version { get; set; }
}
diff --git a/src/Services/Identity/src/Identity/Identity/Models/UserToken.cs b/src/Services/Identity/src/Identity/Identity/Models/UserToken.cs
index ae43e28..ce88cbf 100644
--- a/src/Services/Identity/src/Identity/Identity/Models/UserToken.cs
+++ b/src/Services/Identity/src/Identity/Identity/Models/UserToken.cs
@@ -1,10 +1,10 @@
-namespace Identity.Identity.Models;
+namespace Identity.Identity.Models;
using System;
using BuildingBlocks.Core.Model;
using Microsoft.AspNetCore.Identity;
-public class UserToken: IdentityUserToken, IVersion
+public class UserToken : IdentityUserToken, IVersion
{
public long Version { get; set; }
}
diff --git a/src/Services/Identity/tests/IntegrationTest/Fakes/FakeRegisterNewUserCommand.cs b/src/Services/Identity/tests/IntegrationTest/Fakes/FakeRegisterNewUserCommand.cs
index beb1e9f..f351009 100644
--- a/src/Services/Identity/tests/IntegrationTest/Fakes/FakeRegisterNewUserCommand.cs
+++ b/src/Services/Identity/tests/IntegrationTest/Fakes/FakeRegisterNewUserCommand.cs
@@ -1,4 +1,4 @@
-using AutoBogus;
+using AutoBogus;
namespace Integration.Test.Fakes;
diff --git a/src/Services/Identity/tests/IntegrationTest/Identity/Features/RegisterNewUserTests.cs b/src/Services/Identity/tests/IntegrationTest/Identity/Features/RegisterNewUserTests.cs
index dfc34a4..f606fef 100644
--- a/src/Services/Identity/tests/IntegrationTest/Identity/Features/RegisterNewUserTests.cs
+++ b/src/Services/Identity/tests/IntegrationTest/Identity/Features/RegisterNewUserTests.cs
@@ -1,4 +1,4 @@
-using System.Threading.Tasks;
+using System.Threading.Tasks;
using BuildingBlocks.Contracts.EventBus.Messages;
using BuildingBlocks.TestBase;
using FluentAssertions;
diff --git a/src/Services/Identity/tests/IntegrationTest/IdentityIntegrationTestBase.cs b/src/Services/Identity/tests/IntegrationTest/IdentityIntegrationTestBase.cs
index a60e96f..248d45c 100644
--- a/src/Services/Identity/tests/IntegrationTest/IdentityIntegrationTestBase.cs
+++ b/src/Services/Identity/tests/IntegrationTest/IdentityIntegrationTestBase.cs
@@ -1,4 +1,4 @@
-using BuildingBlocks.TestBase;
+using BuildingBlocks.TestBase;
using Identity.Api;
using Identity.Data;
using Xunit;
@@ -6,7 +6,7 @@ using Xunit;
namespace Integration.Test;
[Collection(IntegrationTestCollection.Name)]
-public class IdentityIntegrationTestBase: TestWriteBase
+public class IdentityIntegrationTestBase : TestWriteBase
{
public IdentityIntegrationTestBase(TestWriteFixture integrationTestFactory)
: base(integrationTestFactory)
diff --git a/src/Services/Identity/tests/IntegrationTest/Integration.Test.csproj b/src/Services/Identity/tests/IntegrationTest/Integration.Test.csproj
index a0acfe3..360c105 100644
--- a/src/Services/Identity/tests/IntegrationTest/Integration.Test.csproj
+++ b/src/Services/Identity/tests/IntegrationTest/Integration.Test.csproj
@@ -1,11 +1,5 @@
-
- net8.0
- false
- enable
-
-
PreserveNewest
@@ -13,7 +7,7 @@
-
+
runtime; build; native; contentfiles; analyzers; buildtransitive
diff --git a/src/Services/Passenger/src/Passenger.Api/Passenger.Api.csproj b/src/Services/Passenger/src/Passenger.Api/Passenger.Api.csproj
index 1fabf7c..8e87cd5 100644
--- a/src/Services/Passenger/src/Passenger.Api/Passenger.Api.csproj
+++ b/src/Services/Passenger/src/Passenger.Api/Passenger.Api.csproj
@@ -1,11 +1,5 @@
-
- net8.0
- enable
- enable
-
-
diff --git a/src/Services/Passenger/src/Passenger.Api/Program.cs b/src/Services/Passenger/src/Passenger.Api/Program.cs
index bf17e88..5d1aeac 100644
--- a/src/Services/Passenger/src/Passenger.Api/Program.cs
+++ b/src/Services/Passenger/src/Passenger.Api/Program.cs
@@ -12,7 +12,7 @@ builder.Host.UseDefaultServiceProvider((context, options) =>
options.ValidateOnBuild = true;
});
-builder.AddMinimalEndpoints(assemblies:typeof(PassengerRoot).Assembly);
+builder.AddMinimalEndpoints(assemblies: typeof(PassengerRoot).Assembly);
builder.AddInfrastructure();
var app = builder.Build();
diff --git a/src/Services/Passenger/src/Passenger/Data/DesignTimeDbContextFactory.cs b/src/Services/Passenger/src/Passenger/Data/DesignTimeDbContextFactory.cs
index d56404d..4ee9534 100644
--- a/src/Services/Passenger/src/Passenger/Data/DesignTimeDbContextFactory.cs
+++ b/src/Services/Passenger/src/Passenger/Data/DesignTimeDbContextFactory.cs
@@ -3,7 +3,7 @@ using Microsoft.EntityFrameworkCore.Design;
namespace Passenger.Data;
-public class DesignTimeDbContextFactory: IDesignTimeDbContextFactory
+public class DesignTimeDbContextFactory : IDesignTimeDbContextFactory
{
public PassengerDbContext CreateDbContext(string[] args)
{
diff --git a/src/Services/Passenger/src/Passenger/Data/Migrations/20230611213031_initial.cs b/src/Services/Passenger/src/Passenger/Data/Migrations/20230611213031_initial.cs
index 754a595..57c1647 100644
--- a/src/Services/Passenger/src/Passenger/Data/Migrations/20230611213031_initial.cs
+++ b/src/Services/Passenger/src/Passenger/Data/Migrations/20230611213031_initial.cs
@@ -1,4 +1,4 @@
-using System;
+using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
diff --git a/src/Services/Passenger/src/Passenger/Data/PassengerReadDbContext.cs b/src/Services/Passenger/src/Passenger/Data/PassengerReadDbContext.cs
index 62aa107..e4dcf14 100644
--- a/src/Services/Passenger/src/Passenger/Data/PassengerReadDbContext.cs
+++ b/src/Services/Passenger/src/Passenger/Data/PassengerReadDbContext.cs
@@ -1,4 +1,4 @@
-using BuildingBlocks.Mongo;
+using BuildingBlocks.Mongo;
using Humanizer;
using Microsoft.Extensions.Options;
using MongoDB.Driver;
diff --git a/src/Services/Passenger/src/Passenger/Extensions/Infrastructure/InfrastructureExtensions.cs b/src/Services/Passenger/src/Passenger/Extensions/Infrastructure/InfrastructureExtensions.cs
index 54b89c5..ef9bd45 100644
--- a/src/Services/Passenger/src/Passenger/Extensions/Infrastructure/InfrastructureExtensions.cs
+++ b/src/Services/Passenger/src/Passenger/Extensions/Infrastructure/InfrastructureExtensions.cs
@@ -1,4 +1,4 @@
-using System.Threading.RateLimiting;
+using System.Threading.RateLimiting;
using BuildingBlocks.Core;
using BuildingBlocks.EFCore;
using BuildingBlocks.Exception;
@@ -53,7 +53,10 @@ public static class InfrastructureExtensions
partitionKey: httpContext.User.Identity?.Name ?? httpContext.Request.Headers.Host.ToString(),
factory: partition => new FixedWindowRateLimiterOptions
{
- AutoReplenishment = true, PermitLimit = 10, QueueLimit = 0, Window = TimeSpan.FromMinutes(1)
+ AutoReplenishment = true,
+ PermitLimit = 10,
+ QueueLimit = 0,
+ Window = TimeSpan.FromMinutes(1)
}));
});
diff --git a/src/Services/Passenger/src/Passenger/GrpcServer/Services/PassengerGrpcServices.cs b/src/Services/Passenger/src/Passenger/GrpcServer/Services/PassengerGrpcServices.cs
index 3b9cf37..d66cca5 100644
--- a/src/Services/Passenger/src/Passenger/GrpcServer/Services/PassengerGrpcServices.cs
+++ b/src/Services/Passenger/src/Passenger/GrpcServer/Services/PassengerGrpcServices.cs
@@ -1,4 +1,4 @@
-using Grpc.Core;
+using Grpc.Core;
using MediatR;
namespace Passenger.GrpcServer.Services;
diff --git a/src/Services/Passenger/src/Passenger/Identity/Consumers/RegisteringNewUser/V1/PassengerCreatedDomainEvent.cs b/src/Services/Passenger/src/Passenger/Identity/Consumers/RegisteringNewUser/V1/PassengerCreatedDomainEvent.cs
index ce31b86..1e96c2d 100644
--- a/src/Services/Passenger/src/Passenger/Identity/Consumers/RegisteringNewUser/V1/PassengerCreatedDomainEvent.cs
+++ b/src/Services/Passenger/src/Passenger/Identity/Consumers/RegisteringNewUser/V1/PassengerCreatedDomainEvent.cs
@@ -1,4 +1,4 @@
-namespace Passenger.Identity.Consumers.RegisteringNewUser.V1;
+namespace Passenger.Identity.Consumers.RegisteringNewUser.V1;
using BuildingBlocks.Core.Event;
diff --git a/src/Services/Passenger/src/Passenger/Passenger.csproj b/src/Services/Passenger/src/Passenger/Passenger.csproj
index bf1d4be..015938e 100644
--- a/src/Services/Passenger/src/Passenger/Passenger.csproj
+++ b/src/Services/Passenger/src/Passenger/Passenger.csproj
@@ -1,14 +1,8 @@
-
- net8.0
- enable
- enable
-
-
-
-
+
+
all
runtime; build; native; contentfiles; analyzers; buildtransitive
diff --git a/src/Services/Passenger/src/Passenger/PassengerRoot.cs b/src/Services/Passenger/src/Passenger/PassengerRoot.cs
index 003d77e..faf4fe5 100644
--- a/src/Services/Passenger/src/Passenger/PassengerRoot.cs
+++ b/src/Services/Passenger/src/Passenger/PassengerRoot.cs
@@ -2,5 +2,5 @@ namespace Passenger;
public class PassengerRoot
{
-
-}
\ No newline at end of file
+
+}
diff --git a/src/Services/Passenger/src/Passenger/Passengers/Exceptions/PassengerNotFoundException.cs b/src/Services/Passenger/src/Passenger/Passengers/Exceptions/PassengerNotFoundException.cs
index 845d876..771089e 100644
--- a/src/Services/Passenger/src/Passenger/Passengers/Exceptions/PassengerNotFoundException.cs
+++ b/src/Services/Passenger/src/Passenger/Passengers/Exceptions/PassengerNotFoundException.cs
@@ -2,7 +2,7 @@ namespace Passenger.Passengers.Exceptions;
using BuildingBlocks.Exception;
-public class PassengerNotFoundException: NotFoundException
+public class PassengerNotFoundException : NotFoundException
{
public PassengerNotFoundException(string code = default) : base("Passenger not found!")
{
diff --git a/src/Services/Passenger/src/Passenger/Passengers/Models/Passenger.cs b/src/Services/Passenger/src/Passenger/Passengers/Models/Passenger.cs
index 7fa03b8..1b287b9 100644
--- a/src/Services/Passenger/src/Passenger/Passengers/Models/Passenger.cs
+++ b/src/Services/Passenger/src/Passenger/Passengers/Models/Passenger.cs
@@ -3,8 +3,8 @@ using BuildingBlocks.Core.Model;
namespace Passenger.Passengers.Models;
using Features.CompletingRegisterPassenger.V1;
-using ValueObjects;
using Identity.Consumers.RegisteringNewUser.V1;
+using ValueObjects;
public record Passenger : Aggregate
{
diff --git a/src/Services/Passenger/tests/IntegrationTest/Fakes/FakeCompleteRegisterPassengerCommand.cs b/src/Services/Passenger/tests/IntegrationTest/Fakes/FakeCompleteRegisterPassengerCommand.cs
index e0cdc64..d470686 100644
--- a/src/Services/Passenger/tests/IntegrationTest/Fakes/FakeCompleteRegisterPassengerCommand.cs
+++ b/src/Services/Passenger/tests/IntegrationTest/Fakes/FakeCompleteRegisterPassengerCommand.cs
@@ -1,4 +1,4 @@
-using AutoBogus;
+using AutoBogus;
using Passenger.Passengers.Enums;
namespace Integration.Test.Fakes;
diff --git a/src/Services/Passenger/tests/IntegrationTest/Fakes/FakeCompleteRegisterPassengerMongoCommand.cs b/src/Services/Passenger/tests/IntegrationTest/Fakes/FakeCompleteRegisterPassengerMongoCommand.cs
index a62fafc..f4c3f05 100644
--- a/src/Services/Passenger/tests/IntegrationTest/Fakes/FakeCompleteRegisterPassengerMongoCommand.cs
+++ b/src/Services/Passenger/tests/IntegrationTest/Fakes/FakeCompleteRegisterPassengerMongoCommand.cs
@@ -1,15 +1,15 @@
-namespace Integration.Test.Fakes;
+namespace Integration.Test.Fakes;
using AutoBogus;
using global::Passenger.Passengers.Enums;
using global::Passenger.Passengers.Features.CompletingRegisterPassenger.V1;
using MassTransit;
-public class FakeCompleteRegisterPassengerMongoCommand: AutoFaker
+public class FakeCompleteRegisterPassengerMongoCommand : AutoFaker
{
public FakeCompleteRegisterPassengerMongoCommand()
{
- RuleFor(r => r.Id, _ => NewId.NextGuid());
+ RuleFor(r => r.Id, _ => NewId.NextGuid());
RuleFor(r => r.Name, _ => "Sam");
RuleFor(r => r.PassportNumber, _ => "123456789");
RuleFor(r => r.Age, _ => 30);
diff --git a/src/Services/Passenger/tests/IntegrationTest/Fakes/FakeUserCreated.cs b/src/Services/Passenger/tests/IntegrationTest/Fakes/FakeUserCreated.cs
index 7337754..de9e78e 100644
--- a/src/Services/Passenger/tests/IntegrationTest/Fakes/FakeUserCreated.cs
+++ b/src/Services/Passenger/tests/IntegrationTest/Fakes/FakeUserCreated.cs
@@ -1,4 +1,4 @@
-using AutoBogus;
+using AutoBogus;
using BuildingBlocks.Contracts.EventBus.Messages;
namespace Integration.Test.Fakes;
@@ -9,7 +9,7 @@ public class FakeUserCreated : AutoFaker
{
public FakeUserCreated()
{
- RuleFor(r => r.Id, _ => NewId.NextGuid());
+ RuleFor(r => r.Id, _ => NewId.NextGuid());
RuleFor(r => r.Name, _ => "Sam");
RuleFor(r => r.PassportNumber, _ => "123456789");
}
diff --git a/src/Services/Passenger/tests/IntegrationTest/Integration.Test.csproj b/src/Services/Passenger/tests/IntegrationTest/Integration.Test.csproj
index 555eefa..0ae4574 100644
--- a/src/Services/Passenger/tests/IntegrationTest/Integration.Test.csproj
+++ b/src/Services/Passenger/tests/IntegrationTest/Integration.Test.csproj
@@ -1,11 +1,5 @@
-
- net8.0
- false
- enable
-
-
PreserveNewest
@@ -13,7 +7,7 @@
-
+
runtime; build; native; contentfiles; analyzers; buildtransitive
diff --git a/src/Services/Passenger/tests/IntegrationTest/Passenger/Features/GetPassengerByIdTests.cs b/src/Services/Passenger/tests/IntegrationTest/Passenger/Features/GetPassengerByIdTests.cs
index 76df5c0..3ca8e95 100644
--- a/src/Services/Passenger/tests/IntegrationTest/Passenger/Features/GetPassengerByIdTests.cs
+++ b/src/Services/Passenger/tests/IntegrationTest/Passenger/Features/GetPassengerByIdTests.cs
@@ -1,4 +1,4 @@
-using System.Threading.Tasks;
+using System.Threading.Tasks;
using BuildingBlocks.TestBase;
using FluentAssertions;
using Integration.Test.Fakes;
@@ -49,7 +49,7 @@ public class GetPassengerByIdTests : PassengerIntegrationTestBase
var passengerGrpcClient = new PassengerGrpcService.PassengerGrpcServiceClient(Fixture.Channel);
// Act
- var response = await passengerGrpcClient.GetByIdAsync(new GetByIdRequest {Id = command.Id.ToString()});
+ var response = await passengerGrpcClient.GetByIdAsync(new GetByIdRequest { Id = command.Id.ToString() });
// Assert
response?.Should().NotBeNull();
diff --git a/src/Services/Passenger/tests/IntegrationTest/PassengerIntegrationTestBase.cs b/src/Services/Passenger/tests/IntegrationTest/PassengerIntegrationTestBase.cs
index 80aa9d9..c0d04e9 100644
--- a/src/Services/Passenger/tests/IntegrationTest/PassengerIntegrationTestBase.cs
+++ b/src/Services/Passenger/tests/IntegrationTest/PassengerIntegrationTestBase.cs
@@ -1,4 +1,4 @@
-using BuildingBlocks.TestBase;
+using BuildingBlocks.TestBase;
using Passenger.Api;
using Passenger.Data;
using Xunit;
@@ -6,7 +6,7 @@ using Xunit;
namespace Integration.Test;
[Collection(IntegrationTestCollection.Name)]
-public class PassengerIntegrationTestBase: TestBase
+public class PassengerIntegrationTestBase : TestBase
{
public PassengerIntegrationTestBase(TestFixture integrationTestFactory)
: base(integrationTestFactory)