SteveSandersonMS / BlazorUnitTestingPrototype

94 stars 54 forks source link

Enabling ServiceCollection to be injected #15

Closed jrolstad closed 3 years ago

jrolstad commented 4 years ago

Addressing issue #14 and also exposing the NextRender method so the TestHost can be used by other test builders

MarijnPessers commented 4 years ago

I did the same for my own project adding just these 4 lines (constructor overload)

public TestHost(IServiceCollection serviceCollection) : this()
{
    _serviceCollection = serviceCollection;
}
jrolstad commented 3 years ago

Closing since this library was for a POC and I'm using bUnit now.