protected GivenACollectionStore(string endpoint, ITestOutputHelper output,
                                 WebApplicationFactory <TStartup> factory)
 {
     _endpoint = endpoint;
     _factory  = factory.WithTestLogging(output)
                 .WithoutLocalizationStartupService()
                 .WithWebHostBuilder(builder =>
     {
         builder.ConfigureTestServices(services =>
         {
             services.RemoveAll <TService>();
             services.AddSingleton(r =>
             {
                 var service = Instancing.CreateInstance <TService>(services.BuildServiceProvider());
                 Populate(service);
                 return(service);
             });
         });
     });
 }
 public ExternalServiceTests(ITestOutputHelper output, WebApplicationFactory <Startup> factory)
 {
     _factory = factory.WithTestLogging(output);
 }