public void Configure_ConfiguresServices()
        {
            var builder = new TestStartup();

            var webJobsBuilder = new TestWebJobsBuilder();

            builder.Configure(webJobsBuilder);

            Assert.Collection(webJobsBuilder.Services, t => Assert.Equal(typeof(Foo), t.ImplementationType));
        }
        private TestServer CreateTestServer()
        {
            var hostBuilder = new WebHostBuilder().ConfigureServices(services => _startup.ConfigureServices(services))
                              .Configure(app =>
            {
                _app        = app;
                _hostingEnv = app.ApplicationServices.GetRequiredService <IHostingEnvironment>();
                _startup.Configure(app, _hostingEnv);
            });

            return(new TestServer(hostBuilder));
        }