示例#1
0
 public StudentControllerTests(TestingWebAppFactory <Startup> factory)
 {
     _client            = factory.CreateClient();
     _courseRepository  = factory.Resolve <ICourseRepository>();
     _groupRepository   = factory.Resolve <IGroupRepository>();
     _studentRepository = factory.Resolve <IStudentRepository>();
 }
示例#2
0
 public GeneralTests(TestingWebAppFactory <Startup> factory)
 {
     _client = factory.CreateClient();
 }
 public CourseControllerTests(TestingWebAppFactory <Startup> factory)
 {
     _client           = factory.CreateClient();
     _courseRepository = factory.Resolve <ICourseRepository>();
 }