dependabot[bot] on npm_and_yarn
Bump shell-quote from 1.7.2 to … (compare)
dependabot[bot] on nuget
Bump Newtonsoft.Json from 9.0.1… (compare)
WebApplicationFactory
, let me know what you think of #97.
ForStartup()
needs to die and go away anyway. Too much other stuff potentially happens on HostBuilder. I need to think about it a touch more, but I’m inclined to agree with the approach in that PR. Now that I understand the magic of how WebApplicationFactory resolves things w/o having to duplicate all the project configuration, I think I’m good with what you did.
HostFactoryResolver
internals: https://andrewlock.net/exploring-dotnet-6-part-5-supporting-ef-core-tools-with-webapplicationbuilder/
Program.cs
.// This is calling your real web service's configuration
var hostBuilder = WebAppSecuredWithJwt.Program
.CreateHostBuilder(Array.Empty<string>());
AlbaHost
. My aspnet 6 project only has Program
class and no Startup
class. I am using underlying WebApplicationFactory to create the host. How do i specify to use the Testing
specific appSettings
json file when building the host?AlbaHost = await Alba.AlbaHost.For<Program>(builder =>
{
builder.ConfigureServices(services =>
{
});
});
builder.UserEnvironment("test");
before the ConfigureServices
. That works as well.
Hi, as anyone successfully used the FormData
to upload file to an endpoint. I am trying the following but doesnt seem to work.
_.Post.FormData(form).ToUrl(_basePath);
where form is MultipartFormDataContent
containing the file.
Came across this issue which has been closed JasperFx/alba#77.
I tried the same setting custom context as in the link above it does not work. Any ideas what could be wrong?