public IUserApiShould(WebApplicationFactory <Startup> factory) { using var scope = InitializeContainer.InitializeTests(factory.CreateClient()).BeginLifetimeScope(); this.userApi = scope.Resolve <IUserApi>(); }
public IApiShould(CustomWebApplicationFactory <Startup> factory) { using var scope = InitializeContainer.InitializeTests(factory.CreateClientWithDefaultRequestHeaders()).BeginLifetimeScope(); this.api = scope.Resolve <IApi>(); }
public IUserServiceShould() { using var scope = InitializeContainer.InitializeTests().BeginLifetimeScope(); this.userService = scope.Resolve <IUserService>(); }