コード例 #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ProjectsEndpointTest"/> class.
 /// </summary>
 /// <param name="factory">
 /// The factory.
 /// </param>
 public ProjectsEndpointTest(IntegrationTestsApplicationFactory <Startup> factory)
     : base(factory)
 {
     this.projectService = this.Services.GetService <IProjectService>();
 }
コード例 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="EndpointBaseTest"/> class.
 /// </summary>
 /// <param name="factory">
 /// The application factory.
 /// </param>
 public EndpointBaseTest(IntegrationTestsApplicationFactory <Startup> factory)
 {
     this.Client   = factory.CreateClient();
     this.Services = factory.Server.Host.Services;
 }