private AzureFunctionsHttpProject( TestConfig configuration, ITestOutputHelper outputWriter) : base(configuration.GetAzureFunctionsHttpProjectDirectory(), configuration, outputWriter) { OrderFunctionEndpoint = RootEndpoint.AppendPathSegments("order").ToUri(); Order = new OrderService(OrderFunctionEndpoint, outputWriter); }
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); }
public async Task Setup() { await RootEndpoint.Send(new PingMessage()); }