Skip to content

Test controller provider #969

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

Merged
merged 20 commits into from
Mar 18, 2021
Merged

Test controller provider #969

merged 20 commits into from
Mar 18, 2021

Conversation

maurei
Copy link
Member

@maurei maurei commented Mar 17, 2021

Introduces a mechanism to explicitly register only the controllers required for a particular test suite, rather than always registering all controllers from the entire test assembly.

This mechanism is explicitly available in the constructor of every test suite. Example:

public class TestCollection : IClassFixture<Fixture<TestStartup, TestDbContext>>
{
    public TestCollection(Fixture<TestStartup, TestDbContext> testContext)
    {
        testContext.AddController<OperationsController>();
    }	
}

@maurei maurei marked this pull request as ready for review March 17, 2021 12:02
@maurei maurei requested a review from bart-degreed March 17, 2021 12:02
Copy link
Contributor

@bart-degreed bart-degreed left a comment

Choose a reason for hiding this comment

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

Looking good overall, few remarks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants