Exemplo n.º 1
0
 public static Test IncludeRunHistories(this Test test, IRunHistoryRepository runHistoryRepository)
 {
     if (test.RunHistories != null)
     {
         return(test);
     }
     test.RunHistories = (RunHistoryList)runHistoryRepository.GetDataByTestId(test.Id);
     return(test);
 }
Exemplo n.º 2
0
 public static Test IncludeRunHistories(this Test test, IRunHistoryRepository runHistoryRepository)
 {
     if (test.RunHistories != null) return test;
     test.RunHistories = (RunHistoryList) runHistoryRepository.GetDataByTestId(test.Id);
     return test;
 }
 public IQueryable <RunHistory> GetDataByTestId(Int32 testId)
 {
     return(_dbRepository.GetDataByTestId(testId).AsQueryable());
 }