JasperFx / alba

Easy integration testing for ASP.NET Core applications
https://jasperfx.github.io/alba
Apache License 2.0
407 stars 39 forks source link

Fill in service registration for HttpContextAccessor #53

Closed jeremydmiller closed 6 years ago

jeremydmiller commented 6 years ago

Or throw a descriptive exception if it doesn't exist. Alba has to have it, so get it there

joemcbride commented 6 years ago

Currently being added here. https://github.com/JasperFx/alba/blob/master/src/Alba/SystemUnderTest.cs#L121

jeremydmiller commented 6 years ago

Yeah, but that doesn't get called if you build the WebHost directly by overriding that method:(

jeremydmiller commented 6 years ago

Meh, really handled this by ignoring it if the HttpContextAccessor isn't there.