Collection Fixture

We can create a Collection Definition for the Custom Web Application Factory to decorate the test classes.

[CollectionDefinition("API Collection")]
public class APICollection : ICollectionFixture<CustomWebApplicationFactory>
{
}

You can then use that to decorate your test classes.

[Collection("API Collection")]
public class Test
{
    [Fact]
    public void TestOne()
    {
    }
}