Beispiel #1
0
        public void IProjectInfo_EqualsProject_Test6()
        {
            IProjectInfo projectInfo1 = null;
            IProjectInfo projectInfo2 = null;

            Assert.IsFalse(projectInfo1.EqualsProject(projectInfo2));
        }
Beispiel #2
0
        public void IProjectInfo_EqualsProject_Test4()
        {
            IProjectInfo projectInfo1 = null;
            var          projectInfo2 = new ProjectInfo {
                ProjectID = 5, ProjectRun = 6, ProjectClone = 7, ProjectGen = 8
            };

            Assert.IsFalse(projectInfo1.EqualsProject(projectInfo2));
        }
Beispiel #3
0
 private static UnitRun GetUnitRun(SlotRun slotRun, int queueIndex, IProjectInfo projectInfo)
 {
     return(slotRun?.UnitRuns.LastOrDefault(x => x.QueueIndex == queueIndex && projectInfo.EqualsProject(x.Data.ToProjectInfo())));
 }
Beispiel #4
0
 private static UnitRun GetUnitRun(SlotRun slotRun, int queueIndex, IProjectInfo projectInfo)
 {
     if (slotRun != null)
     {
         var unitRun = slotRun.UnitRuns.LastOrDefault(x => x.QueueIndex == queueIndex && projectInfo.EqualsProject(x.Data.ToProjectInfo()));
         if (unitRun != null)
         {
             return(unitRun);
         }
     }
     return(null);
 }
 private static UnitRun GetUnitRun(SlotRun slotRun, int queueIndex, IProjectInfo projectInfo)
 {
    if (slotRun != null)
    {
       var unitRun = slotRun.UnitRuns.FirstOrDefault(x => x.QueueIndex == queueIndex && projectInfo.EqualsProject(x.Data));
       if (unitRun != null)
       {
          return unitRun;
       }
    }
    return null;
 }