public TestGroupFactory(ITestRepository testRepository, ITestGroupRepository testGroupRepository, TestFactory testFactory) { _testRepository = testRepository; _testGroupRepository = testGroupRepository; _testFactory = testFactory; }
public TestController(ITestRepository dbTestRepository, ITestTypeRepository dbTestTypeRepository, IProjectRepository dbProjectRepository, ITestGroupRepository dbTestGroupRepository) { _dbTestRepository = dbTestRepository; _dbTestTypeRepository = dbTestTypeRepository; _dbProjectRepository = dbProjectRepository; _dbTestGroupRepository = dbTestGroupRepository; }
public ProjectFactory(IProjectRepository projectRepository, ITestRepository testRepository, ITestGroupRepository testGroupRepository, TestFactory testFactory) { _projectRepository = projectRepository; _testRepository = testRepository; _testGroupRepository = testGroupRepository; _testFactory = testFactory; }
public static Test IncludeTestGroup(this Test test, ITestGroupRepository testGroupRepository) { if (test.TestGroup != null) { return(test); } test.TestGroup = testGroupRepository.GetDataById((int)test.GroupId).ToList().First(); return(test); }
public static Project IncludeTestGroups(this Project project, ITestGroupRepository testGroupRepository) { if (project.TestGroups != null) { return(project); } project.TestGroups = (TestGroupList)testGroupRepository.GetDataByProjectId(project.ProjectId); return(project); }
public static Test IncludeTestGroup(this Test test, ITestGroupRepository testGroupRepository) { if (test.TestGroup != null) return test; test.TestGroup = testGroupRepository.GetDataById((int) test.GroupId).ToList().First(); return test; }
public TestGroupApiController(ITestGroupRepository dbRepository) { _dbRepository = dbRepository; }
public static Project IncludeTestGroups(this Project project, ITestGroupRepository testGroupRepository) { if (project.TestGroups != null) return project; project.TestGroups = (TestGroupList) testGroupRepository.GetDataByProjectId(project.ProjectId); return project; }