Ejemplo n.º 1
0
 public SystemFixture()
 {
     ChildWorkerHost = new ChildWorkerServiceFactory();
     WorkerHost      = new WorkerServiceFactory()
                       .WithWebHostBuilder(builder => builder.ConfigureTestServices(services =>
     {
         services.AddScoped <Func <HttpClient> >(s => () => WebAppHost.CreateClient());
     }));
     WebAppHost = new WebAppFactory();
 }
Ejemplo n.º 2
0
 public void Start()
 {
     WorkerHost.CreateClient();
     WebAppHost.CreateClient();
     ChildWorkerHost.CreateClient();
 }