예제 #1
0
 private AzureFunctionsHttpProject(
     TestConfig configuration,
     ITestOutputHelper outputWriter)
     : base(configuration.GetAzureFunctionsHttpProjectDirectory(),
            configuration,
            outputWriter)
 {
     OrderFunctionEndpoint = RootEndpoint.AppendPathSegments("order").ToUri();
     Order = new OrderService(OrderFunctionEndpoint, outputWriter);
 }
예제 #2
0
 private AzureFunctionsHttpProject(
     TestConfig configuration,
     ITestOutputHelper outputWriter)
     : base(configuration.GetAzureFunctionsHttpProjectDirectory(),
            configuration,
            outputWriter)
 {
     OrderFunctionEndpoint = RootEndpoint.AppendPathSegments("api", "v1", "order").ToUri();
     Order  = new OrderService(OrderFunctionEndpoint, outputWriter);
     Health = new HealthEndpointService(
         RootEndpoint.AppendPathSegments("api", "v1").ToUri(),
         outputWriter);
     Swagger = new SwaggerEndpointService(
         RootEndpoint.AppendPathSegments("api", "swagger", "ui"),
         RootEndpoint.AppendPathSegments("api", "swagger.json"),
         outputWriter);
 }
예제 #3
0
 public async Task Setup()
 {
     await RootEndpoint.Send(new PingMessage());
 }