Esempio n. 1
0
            //-------------------------------------------------------------------------------------------------------------------------------------------------

            public ClassFixture()
            {
                var configurationName = MicroserviceControllerBuilder.DefaultProjectConfigurationName;

                _controller = new MicroserviceControllerBuilder()
                              .RunMicroserviceAssembly($@"..\..\NWheels.Samples.FirstHappyPath.HelloService\bin\{configurationName}\netcoreapp1.1\hello.dll")
                              .Build();

                _controller.Start();
            }
            //-------------------------------------------------------------------------------------------------------------------------------------------------

            public ClassFixture()
            {
                _controller = new MicroserviceControllerBuilder(microserviceName: "AspNetKestrelTest")
                              .UseNWheelsCliFromSolution(relativeProjectDirectoryPath: "..", allowOverrideByEnvironmentVar: true)
                              .SetMicroserviceDirectory(directoryPath: "..")
                              .BuildMicroservice(host => host
                                                 .UseAutofac()
                                                 .UseFrameworkFeature <KestrelFeatureLoader>()
                                                 .UseApplicationFeature <TestFeatureLoader>())
                              .Build();

                _controller.Start();
            }
Esempio n. 3
0
 public void CanStartAndStop()
 {
     _controller.Start();
 }