Lewis Prescott
04/19/2022, 2:16 PMFábio Rodrigues
04/19/2022, 3:31 PMLewis Prescott
04/19/2022, 3:37 PMFábio Rodrigues
04/19/2022, 3:37 PMFábio Rodrigues
04/19/2022, 3:38 PMFábio Rodrigues
04/19/2022, 3:39 PMFábio Rodrigues
04/19/2022, 3:39 PMLewis Prescott
04/19/2022, 3:39 PMFábio Rodrigues
04/19/2022, 3:40 PMFábio Rodrigues
04/19/2022, 3:40 PMFábio Rodrigues
04/19/2022, 3:41 PMLewis Prescott
04/19/2022, 3:41 PMBret McClory
04/21/2022, 5:06 PMEddie Stanley
05/22/2022, 11:27 PMYou might also get some inspiration from ASP.NET's guidance for integration tests for applications that don't use Startup:FYI - suggesting to look at the ASP.NET guidance for integration tests is a bit of a bum steer, as the HTTP client returned by WebApplicationFactory can't be used by the Pact Verifier - see this issue: https://github.com/pact-foundation/pact-net/issues/283 @Matt (pactflow.io / pact-js / pact-go)
Eddie Stanley
05/22/2022, 11:27 PMBret McClory
05/23/2022, 2:10 AMLewis Prescott
05/23/2022, 6:02 AMBret McClory
05/23/2022, 3:22 PMYousaf Nabi (pactflow.io)
Lewis Prescott
05/23/2022, 5:49 PMJake Howden
07/18/2022, 4:00 PMLewis Prescott
07/18/2022, 4:02 PMJake Howden
07/18/2022, 5:27 PMJake Howden
07/18/2022, 5:28 PMJake Howden
07/19/2022, 8:04 AMpublic class TestStartup
{
public TestStartup(IConfiguration configuration)
{
Configuration = configuration;
}
public IConfiguration Configuration { get; }
public void ConfigureServices(IServiceCollection services)
{
var controllerAssembly = Assembly.GetAssembly(typeof(Controller))!;
services.AddMvc().AddApplicationPart(controllerAssembly)
.AddControllersAsServices();
}
public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
{
app.UseRouting();
app.UseEndpoints(e => e.MapControllers());
}
}
Lewis Prescott
07/19/2022, 8:53 AMMatt (pactflow.io / pact-js / pact-go)
Yousaf Nabi (pactflow.io)