Skip to content
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

Migrate publish integration test #481

Merged
merged 14 commits into from
Dec 18, 2018
Merged

Migrate publish integration test #481

merged 14 commits into from
Dec 18, 2018

Conversation

martincostello
Copy link
Member

@martincostello martincostello commented Dec 13, 2018

This PR migrates the first existing integration test to the new builder API (#431), and fixes a few bugs and other improvements made while migrating it.

  1. Fixes SQS validation being run before the queue/topic names were set.
  2. Add convenience methods for setting queue and topic names.
  3. Fix several incorrect or missing XML comments.
  4. Improve messaging if a publisher is not configured.
  5. Add convenience DI method that wraps usage of IMessageBusConfigurationContributor.

Relates to #380.

@martincostello martincostello added this to the v7.0.0 milestone Dec 13, 2018
@martincostello martincostello requested a review from a team as a code owner December 13, 2018 20:58
services,
async (publisher, listener, cancellationToken) =>
{
listener.Start(cancellationToken);
Copy link
Contributor

@AnthonySteele AnthonySteele Dec 18, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

method as above

Migrate an existing test to the new builder API.
Delete a comment that does not apply to the type.
Fix validation being run before the queue name was set.
Fix incorrect XML comment.
Add convenience methods for setting queue and topic names.
Add missing XML documentation for type parameters.
Improve messaging if a publisher is not configured.
Refactor integration test to reduce duplication.
Remove validation from the builders as because they might compose, they might not become valid until later and thus block activation.
Add an extension method to the Microsoft DI extensions that wraps usage of IMessageBusConfigurationContributor for a delegate.
Migrate more integration tests for publishing to the new fluent API.
Refactor integration test to simplify it a bit.
Migrate two more tests to the new builder API.
Move two subscription tests to the right namespace for that, rather than for publishing.
Remove base class for test that is no longer used.
Migrate the test for throttled receipt to the new builder pattern.
@martincostello
Copy link
Member Author

I'll merge this for now with no changes, but bear the comment in mind. I imagine the tests will iterate as JustBehave is slowly removed as different bits of duplication and repetition get flushed out.

@martincostello martincostello merged commit ef0e4a6 into justeattakeaway:master Dec 18, 2018
@martincostello martincostello deleted the Migrate-Publish-Integration-Test branch December 18, 2018 10:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants