-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature / Communication Beta #100
Conversation
- add `HttpCommunicationFeature` !!! not implemented !!!
- add temporary mock http client implementation
- refactor client factory and app settings usage - move `TimeProviderExtensions` to `Core` folder
- add additional `MockCommuncation` feature tests - minor edits to `ClientFactory`
- remove default response value and test case - remove mock client implementation - convert HttpDescriptor list artifact ro dictionary - rename ClientFactory => HttpClientFactory
- client throws exception with an inner exception with response content
…ILING !!! - add sample http request exception handler - add `[NoTransaction]` attribute
- cannot perform local calls to test server
- use `ConfigureHttpClientDefaults` for default builder delegate - edit documentation - simlify `HttpClientFactory` and add generic type parameter
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is not my final review.
i think there is more to refactor and simplify especially in default mock settings design.
first work on the comments in this review, then we can refactor it in a discord session
src/blueprints/Do.Blueprints.Service.Application/Communication/Http/Client.cs
Outdated
Show resolved
Hide resolved
src/blueprints/Do.Blueprints.Service.Application/Communication/Http/Client.cs
Outdated
Show resolved
Hide resolved
src/blueprints/Do.Blueprints.Service.Application/Communication/Http/HttpCommunicationFeature.cs
Outdated
Show resolved
Hide resolved
src/blueprints/Do.Blueprints.Service.Application/Communication/Http/HttpCommunicationFeature.cs
Outdated
Show resolved
Hide resolved
src/blueprints/Do.Blueprints.Service/Core/TimeProviderExtensions.cs
Outdated
Show resolved
Hide resolved
test/blueprints/Do.Test.Blueprints.Service.Test/Communication/MockCommunicationFeature.cs
Outdated
Show resolved
Hide resolved
test/blueprints/Do.Test.Blueprints.Service.Test/TestServiceSpec.cs
Outdated
Show resolved
Hide resolved
test/blueprints/Do.Test.Blueprints.Service.Test/TestServiceSpec.cs
Outdated
Show resolved
Hide resolved
test/blueprints/Do.Test.Blueprints.Service.Test/TestServiceSpec.cs
Outdated
Show resolved
Hide resolved
test/blueprints/Do.Test.Blueprints.Service.Test/TestServiceSpec.cs
Outdated
Show resolved
Hide resolved
- move TimeProviderExtensions to System namespace - revert ServiceNfr format change - revert HttpClientExtensions to single line - Move dictionary extensions to its own file - return else from FlatTransactionMiddleware - Add PullRequest record for test client - Remove GetContentAsObject helper - Mock Communication feedbacks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
almost there
src/blueprints/Do.Blueprints.Service.Application/Communication/Http/DictionaryExtensions.cs
Outdated
Show resolved
Hide resolved
src/blueprints/Do.Blueprints.Service.Application/Database/FlatTransactionMiddleware.cs
Outdated
Show resolved
Hide resolved
test/blueprints/Do.Test.Blueprints.Service.Test/Communication/MockCommunicationFeature.cs
Outdated
Show resolved
Hide resolved
test/blueprints/Do.Test.Blueprints.Service.Test/Communication/MockCommunicationFeature.cs
Outdated
Show resolved
Hide resolved
test/blueprints/Do.Test.Blueprints.Service.Test/TestServiceSpec.cs
Outdated
Show resolved
Hide resolved
src/blueprints/Do.Blueprints.Service.Application/Communication/Mock/MockCommunicationFeature.cs
Outdated
Show resolved
Hide resolved
src/blueprints/Do.Blueprints.Service.Application/Communication/Mock/MockClientSetup.cs
Outdated
Show resolved
Hide resolved
src/blueprints/Do.Blueprints.Service.Application/Communication/Mock/MockClientConfiguration.cs
Outdated
Show resolved
Hide resolved
src/blueprints/Do.Blueprints.Service.Application/Communication/Mock/MockClientConfiguration.cs
Outdated
Show resolved
Hide resolved
src/blueprints/Do.Blueprints.Service.Application/Communication/Mock/MockClientConfiguration.cs
Outdated
Show resolved
Hide resolved
- add `ClientException` - refactor `HttpClientLayer` client registration - rename test spec to `MockingClients` - refactor builder for mock client setups - minor edits
- add GetContentAsObject helper to Request - Remove MockClientSetup record - minor edits to MockClientBuilder
- add MockClientSetups - move ForClient<T> helpers to mock client setups - change parameter type to MockClientSetups in feature
Add communication feature and http client layer as a beta feature.
Tasks
CommunicationFeature
documentationAdditional Tasks
NoTransaction
attribute and avoid transaction in middleware