private void checkScopeLocationLinks(TECLocated scope, TECBid bid)
 {
     if (scope.Location != null && !bid.Locations.Contains(scope.Location))
     {
         Assert.Fail("Location in scope not linked.");
     }
 }
示例#2
0
 private static void linkLocation(TECLocated scope, IEnumerable <TECLocation> locations)
 {
     if (scope.Location != null)
     {
         bool found = false;
         foreach (TECLocation location in locations)
         {
             if (scope.Location.Guid == location.Guid)
             {
                 scope.Location = location;
                 found          = true;
                 break;
             }
         }
         if (!found)
         {
             throw new Exception("Location in scope not found.");
         }
     }
 }
        private void testForLocation(TECLocated scope)
        {
            bool foundLocation = (scope.Location.Guid == TEST_LOCATION_GUID);

            Assert.IsTrue(foundLocation, "Location not loaded properly into scope.");
        }
 public static void AssignSecondaryProperties(TECLocated located, TECBid bid)
 {
     located.Location = bid.Locations[0];
     AssignSecondaryProperties(located, bid.Catalogs);
 }