Example #1
0
 public IUserApiShould(WebApplicationFactory <Startup> factory)
 {
     using var scope = InitializeContainer.InitializeTests(factory.CreateClient()).BeginLifetimeScope();
     this.userApi    = scope.Resolve <IUserApi>();
 }
Example #2
0
 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>();
 }