Ejemplo n.º 1
0
        public void Activity_persistence_test()
        {
            DateTime now = DateTime.Now;

            // Get datetime without milliseconds
            now = new DateTime(now.Ticks - (now.Ticks % TimeSpan.TicksPerSecond), now.Kind);
            var _vrpsolution_order_activity = new DSS3_LogisticsPoolingForUrbanDistribution.BO.ShippingOrder
            {
                DepartureDate   = now,
                ArrivalDate     = now,
                Shipper         = "ShippingOrder_Shipper",
                Carrier         = "ShippingOrder_Carrier",
                ItemDescription = "ShippingOrder_ItemDescription",
                Conditions      = "ShippingOrder_Conditions",
                AggregateVolume = 222222.22M,
                Priority        = 1271,
            };
            var _vrpsolution_point_activity = new DSS3_LogisticsPoolingForUrbanDistribution.BO.Location
            {
                Name     = "Location_Name",
                Street   = "Location_Street",
                City     = "Location_City",
                Country  = "Location_Country",
                Number   = "Location_Number",
                PostCode = "Location_PostCode",
                Label    = "Location_Label",
            };

            new PersistenceSpecification <DSS3_LogisticsPoolingForUrbanDistribution.BO.Activity>(Session)
            .CheckProperty(p => p.TravelDistance, 2118)
            .CheckProperty(p => p.TravelDuration, 9573)
            .CheckReference(p => p.Order, _vrpsolution_order_activity)
            .CheckReference(p => p.Point, _vrpsolution_point_activity)
            .VerifyTheMappings();
        }
 public virtual void RemoveOrders(ShippingOrder __item)
 {
     if (__item != null)
     {
         InternalRemoveOrders(__item);
     }
 }
 public virtual void AddAtIndexOrders(int index, ShippingOrder __item)
 {
     if (__item == null)
     {
         return;
     }
     orders?.Insert(index, __item);
 }
 public virtual void AddOrders(ShippingOrder __item)
 {
     if (__item == null)
     {
         return;
     }
     InternalAddOrders(__item);
 }
 public virtual void InternalRemoveOrders(ShippingOrder __item)
 {
     if (__item == null)
     {
         return;
     }
     orders?.Remove(__item);
 }
 public virtual void InternalAddOrders(ShippingOrder __item)
 {
     if (__item == null || disableInternalAdditions)
     {
         return;
     }
     orders?.Add(__item);
 }
 public virtual void SetOrdersAt(ShippingOrder __item, int __index)
 {
     if (__item == null)
     {
         orders[__index] = null;
     }
     else
     {
         orders[__index] = __item;
     }
 }
 public virtual void RemoveShippingOrders(ShippingOrder __item)
 {
     if (__item != null)
     {
         if (shippingOrders.Contains(__item))
         {
             InternalRemoveShippingOrders(__item);
         }
         if (__item.Shipment.Contains(this))
         {
             __item.RemoveShipment(this);
         }
     }
 }
 public virtual void SetShippingOrdersAt(ShippingOrder __item, int __index)
 {
     if (__item == null)
     {
         shippingOrders[__index].RemoveShipment(this);
     }
     else
     {
         shippingOrders[__index] = __item;
         if (!__item.Shipment.Contains(this))
         {
             __item.AddShipment(this);
         }
     }
 }
 public virtual void AddAtIndexShippingOrders(int index, ShippingOrder __item)
 {
     if (__item == null)
     {
         return;
     }
     if (!shippingOrders.Contains(__item))
     {
         shippingOrders.Insert(index, __item);
     }
     if (!__item.Shipment.Contains(this))
     {
         __item.AddShipment(this);
     }
 }
 public virtual void AddShippingOrders(ShippingOrder __item)
 {
     if (__item == null)
     {
         return;
     }
     if (!shippingOrders.Contains(__item))
     {
         InternalAddShippingOrders(__item);
     }
     if (!__item.Shipment.Contains(this))
     {
         __item.AddShipment(this);
     }
 }
Ejemplo n.º 12
0
        public void CostSplit_persistence_test()
        {
            DateTime now = DateTime.Now;

            // Get datetime without milliseconds
            now = new DateTime(now.Ticks - (now.Ticks % TimeSpan.TicksPerSecond), now.Kind);
            var _utilsbo_orders_costsplit = new DSS3_LogisticsPoolingForUrbanDistribution.BO.ShippingOrder
            {
                DepartureDate   = now,
                ArrivalDate     = now,
                Shipper         = "ShippingOrder_Shipper",
                Carrier         = "ShippingOrder_Carrier",
                ItemDescription = "ShippingOrder_ItemDescription",
                Conditions      = "ShippingOrder_Conditions",
                AggregateVolume = 222222.22M,
                Priority        = 5744,
            };
            var _utilsbo_orders_costsplit2 = new DSS3_LogisticsPoolingForUrbanDistribution.BO.ShippingOrder
            {
                DepartureDate   = now,
                ArrivalDate     = now,
                Shipper         = "ShippingOrder_Shipper",
                Carrier         = "ShippingOrder_Carrier",
                ItemDescription = "ShippingOrder_ItemDescription",
                Conditions      = "ShippingOrder_Conditions",
                AggregateVolume = 222222.22M,
                Priority        = 3557,
            };

            new PersistenceSpecification <DSS3_LogisticsPoolingForUrbanDistribution.BO.CostSplit>(Session)
            .CheckProperty(p => p.Cost, 222222.22M)
            .CheckProperty(p => p.Shipper, "CostSplit_Shipper")
            .CheckProperty(p => p.StandAloneCost, 222222.22M)
            .CheckBag(p => p.Orders, (new List <DSS3_LogisticsPoolingForUrbanDistribution.BO.ShippingOrder>
            {
                _utilsbo_orders_costsplit,
                _utilsbo_orders_costsplit2
            }))
            .VerifyTheMappings();
        }
        public void ShippingOrder_persistence_test()
        {
            DateTime now = DateTime.Now;

            // Get datetime without milliseconds
            now = new DateTime(now.Ticks - (now.Ticks % TimeSpan.TicksPerSecond), now.Kind);
            var _actionsbo_shipment_shippingorders = new DSS3_LogisticsPoolingForUrbanDistribution.BO.Shipment
            {
                Owner          = "Shipment_Owner",
                DepartureTime  = now,
                CurrentStatus  = "Shipment_CurrentStatus",
                Temperature    = "Shipment_Temperature",
                LoadPercentage = 9319,
                TotalVolume    = 222222.22M,
                AverageVolume  = 222222.22M,
                MaxTravelTime  = 7944,
            };
            var _actionsbo_shipment_shippingorders2 = new DSS3_LogisticsPoolingForUrbanDistribution.BO.Shipment
            {
                Owner          = "Shipment_Owner",
                DepartureTime  = now,
                CurrentStatus  = "Shipment_CurrentStatus",
                Temperature    = "Shipment_Temperature",
                LoadPercentage = 5253,
                TotalVolume    = 222222.22M,
                AverageVolume  = 222222.22M,
                MaxTravelTime  = 823,
            };
            var _ordersbo_departurepoint_shippingorder = new DSS3_LogisticsPoolingForUrbanDistribution.BO.Location
            {
                Name     = "Location_Name",
                Street   = "Location_Street",
                City     = "Location_City",
                Country  = "Location_Country",
                Number   = "Location_Number",
                PostCode = "Location_PostCode",
                Label    = "Location_Label",
            };
            var _ordersbo_arrivalpoint_shippingorder = new DSS3_LogisticsPoolingForUrbanDistribution.BO.Location
            {
                Name     = "Location_Name",
                Street   = "Location_Street",
                City     = "Location_City",
                Country  = "Location_Country",
                Number   = "Location_Number",
                PostCode = "Location_PostCode",
                Label    = "Location_Label",
            };
            var _ordersbo_statusevolution_shippingorder = new DSS3_LogisticsPoolingForUrbanDistribution.BO.StatusEvolution
            {
                TimeChanged = now,
                Description = "StatusEvolution_Description",
            };
            var _ordersbo_statusevolution_shippingorder2 = new DSS3_LogisticsPoolingForUrbanDistribution.BO.StatusEvolution
            {
                TimeChanged = now,
                Description = "StatusEvolution_Description",
            };
            var _ordersbo_parent_shippingorder = new DSS3_LogisticsPoolingForUrbanDistribution.BO.ShippingOrder
            {
                DepartureDate   = now,
                ArrivalDate     = now,
                Shipper         = "ShippingOrder_Shipper",
                Carrier         = "ShippingOrder_Carrier",
                ItemDescription = "ShippingOrder_ItemDescription",
                Conditions      = "ShippingOrder_Conditions",
                AggregateVolume = 222222.22M,
                Priority        = 9512,
            };
            var _ordersbo_plannedvolume_shippingorder = new DSS3_LogisticsPoolingForUrbanDistribution.BO.CustomVolume
            {
                Weight = 222222.22M,
            };
            var _ordersbo_plannedvolume_shippingorder2 = new DSS3_LogisticsPoolingForUrbanDistribution.BO.CustomVolume
            {
                Weight = 222222.22M,
            };
            var _ordersbo_actualvolume_shippingorder = new DSS3_LogisticsPoolingForUrbanDistribution.BO.CustomVolume
            {
                Weight = 222222.22M,
            };
            var _ordersbo_actualvolume_shippingorder2 = new DSS3_LogisticsPoolingForUrbanDistribution.BO.CustomVolume
            {
                Weight = 222222.22M,
            };
            var _ordersbo_itemtype_shippingorder = new DSS3_LogisticsPoolingForUrbanDistribution.BO.ItemType
            {
                Description = "ItemType_Description",
                Temperature = 6695,
            };

            new PersistenceSpecification <DSS3_LogisticsPoolingForUrbanDistribution.BO.ShippingOrder>(Session)
            .CheckProperty(p => p.DepartureDate, now)
            .CheckProperty(p => p.ArrivalDate, now)
            .CheckProperty(p => p.Shipper, "ShippingOrder_Shipper")
            .CheckProperty(p => p.Carrier, "ShippingOrder_Carrier")
            .CheckProperty(p => p.ItemDescription, "ShippingOrder_ItemDescription")
            .CheckProperty(p => p.Conditions, "ShippingOrder_Conditions")
            .CheckProperty(p => p.AggregateVolume, 222222.22M)
            .CheckProperty(p => p.Priority, 5417)
            .CheckBag(p => p.Shipment, (new List <DSS3_LogisticsPoolingForUrbanDistribution.BO.Shipment>
            {
                _actionsbo_shipment_shippingorders,
                _actionsbo_shipment_shippingorders2
            }))
            .CheckReference(p => p.DeparturePoint, _ordersbo_departurepoint_shippingorder)
            .CheckReference(p => p.ArrivalPoint, _ordersbo_arrivalpoint_shippingorder)
            .CheckBag(p => p.StatusEvolution, (new List <DSS3_LogisticsPoolingForUrbanDistribution.BO.StatusEvolution>
            {
                _ordersbo_statusevolution_shippingorder,
                _ordersbo_statusevolution_shippingorder2
            }))
            .CheckReference(p => p.Parent, _ordersbo_parent_shippingorder)
            .CheckBag(p => p.PlannedVolume, (new List <DSS3_LogisticsPoolingForUrbanDistribution.BO.CustomVolume>
            {
                _ordersbo_plannedvolume_shippingorder,
                _ordersbo_plannedvolume_shippingorder2
            }))
            .CheckBag(p => p.ActualVolume, (new List <DSS3_LogisticsPoolingForUrbanDistribution.BO.CustomVolume>
            {
                _ordersbo_actualvolume_shippingorder,
                _ordersbo_actualvolume_shippingorder2
            }))
            .CheckReference(p => p.ItemType, _ordersbo_itemtype_shippingorder)
            .VerifyTheMappings();
        }
Ejemplo n.º 14
0
/// <summary>
/// Copies the current object to a new instance
/// </summary>
/// <param name="deep">Copy members that refer to objects external to this class (not dependent)</param>
/// <param name="copiedObjects">Objects that should be reused</param>
/// <param name="asNew">Copy the current object as a new one, ready to be persisted, along all its members.</param>
/// <param name="reuseNestedObjects">If asNew is true, this flag if set, forces the reuse of all external objects.</param>
/// <param name="copy">Optional - An existing [ShippingOrder] instance to use as the destination.</param>
/// <returns>A copy of the object</returns>
        public virtual ShippingOrder Copy(bool deep = false, Hashtable copiedObjects = null, bool asNew = false, bool reuseNestedObjects = false, ShippingOrder copy = null)
        {
            if (copiedObjects == null)
            {
                copiedObjects = new Hashtable();
            }
            if (copy == null && copiedObjects.Contains(this))
            {
                return((ShippingOrder)copiedObjects[this]);
            }
            copy = copy ?? new ShippingOrder();
            if (!asNew)
            {
                copy.TransientId = this.TransientId;
                copy.Id          = this.Id;
            }
            copy.DepartureDate   = this.DepartureDate;
            copy.ArrivalDate     = this.ArrivalDate;
            copy.Shipper         = this.Shipper;
            copy.Carrier         = this.Carrier;
            copy.CurrentStatus   = this.CurrentStatus;
            copy.ItemDescription = this.ItemDescription;
            copy.Conditions      = this.Conditions;
            copy.AggregateVolume = this.AggregateVolume;
            copy.Priority        = this.Priority;
            if (!copiedObjects.Contains(this))
            {
                copiedObjects.Add(this, copy);
            }
            copy.shipment = new List <Shipment>();
            if (deep && this.shipment != null)
            {
                foreach (var __item in this.shipment)
                {
                    if (!copiedObjects.Contains(__item))
                    {
                        if (asNew && reuseNestedObjects)
                        {
                            copy.AddShipment(__item);
                        }
                        else
                        {
                            copy.AddShipment(__item.Copy(deep, copiedObjects, asNew));
                        }
                    }
                    else
                    {
                        copy.AddShipment((Shipment)copiedObjects[__item]);
                    }
                }
            }
            if (deep && this.departurePoint != null)
            {
                if (!copiedObjects.Contains(this.departurePoint))
                {
                    if (asNew && reuseNestedObjects)
                    {
                        copy.DeparturePoint = this.DeparturePoint;
                    }
                    else if (asNew)
                    {
                        copy.DeparturePoint = this.DeparturePoint.Copy(deep, copiedObjects, true);
                    }
                    else
                    {
                        copy.departurePoint = this.departurePoint.Copy(deep, copiedObjects, false);
                    }
                }
                else
                {
                    if (asNew)
                    {
                        copy.DeparturePoint = (Location)copiedObjects[this.DeparturePoint];
                    }
                    else
                    {
                        copy.departurePoint = (Location)copiedObjects[this.DeparturePoint];
                    }
                }
            }
            if (deep && this.arrivalPoint != null)
            {
                if (!copiedObjects.Contains(this.arrivalPoint))
                {
                    if (asNew && reuseNestedObjects)
                    {
                        copy.ArrivalPoint = this.ArrivalPoint;
                    }
                    else if (asNew)
                    {
                        copy.ArrivalPoint = this.ArrivalPoint.Copy(deep, copiedObjects, true);
                    }
                    else
                    {
                        copy.arrivalPoint = this.arrivalPoint.Copy(deep, copiedObjects, false);
                    }
                }
                else
                {
                    if (asNew)
                    {
                        copy.ArrivalPoint = (Location)copiedObjects[this.ArrivalPoint];
                    }
                    else
                    {
                        copy.arrivalPoint = (Location)copiedObjects[this.ArrivalPoint];
                    }
                }
            }
            copy.statusEvolution = new List <StatusEvolution>();
            if (deep && this.statusEvolution != null)
            {
                foreach (var __item in this.statusEvolution)
                {
                    if (!copiedObjects.Contains(__item))
                    {
                        if (asNew && reuseNestedObjects)
                        {
                            copy.AddStatusEvolution(__item);
                        }
                        else
                        {
                            copy.AddStatusEvolution(__item.Copy(deep, copiedObjects, asNew));
                        }
                    }
                    else
                    {
                        copy.AddStatusEvolution((StatusEvolution)copiedObjects[__item]);
                    }
                }
            }
            if (deep && this.parent != null)
            {
                if (!copiedObjects.Contains(this.parent))
                {
                    if (asNew && reuseNestedObjects)
                    {
                        copy.Parent = this.Parent;
                    }
                    else if (asNew)
                    {
                        copy.Parent = this.Parent.Copy(deep, copiedObjects, true);
                    }
                    else
                    {
                        copy.parent = this.parent.Copy(deep, copiedObjects, false);
                    }
                }
                else
                {
                    if (asNew)
                    {
                        copy.Parent = (ShippingOrder)copiedObjects[this.Parent];
                    }
                    else
                    {
                        copy.parent = (ShippingOrder)copiedObjects[this.Parent];
                    }
                }
            }
            copy.plannedVolume = new List <CustomVolume>();
            if (deep && this.plannedVolume != null)
            {
                foreach (var __item in this.plannedVolume)
                {
                    if (!copiedObjects.Contains(__item))
                    {
                        if (asNew && reuseNestedObjects)
                        {
                            copy.AddPlannedVolume(__item);
                        }
                        else
                        {
                            copy.AddPlannedVolume(__item.Copy(deep, copiedObjects, asNew));
                        }
                    }
                    else
                    {
                        copy.AddPlannedVolume((CustomVolume)copiedObjects[__item]);
                    }
                }
            }
            copy.actualVolume = new List <CustomVolume>();
            if (deep && this.actualVolume != null)
            {
                foreach (var __item in this.actualVolume)
                {
                    if (!copiedObjects.Contains(__item))
                    {
                        if (asNew && reuseNestedObjects)
                        {
                            copy.AddActualVolume(__item);
                        }
                        else
                        {
                            copy.AddActualVolume(__item.Copy(deep, copiedObjects, asNew));
                        }
                    }
                    else
                    {
                        copy.AddActualVolume((CustomVolume)copiedObjects[__item]);
                    }
                }
            }
            if (deep && this.itemType != null)
            {
                if (!copiedObjects.Contains(this.itemType))
                {
                    if (asNew && reuseNestedObjects)
                    {
                        copy.ItemType = this.ItemType;
                    }
                    else if (asNew)
                    {
                        copy.ItemType = this.ItemType.Copy(deep, copiedObjects, true);
                    }
                    else
                    {
                        copy.itemType = this.itemType.Copy(deep, copiedObjects, false);
                    }
                }
                else
                {
                    if (asNew)
                    {
                        copy.ItemType = (ItemType)copiedObjects[this.ItemType];
                    }
                    else
                    {
                        copy.itemType = (ItemType)copiedObjects[this.ItemType];
                    }
                }
            }
            return(copy);
        }
Ejemplo n.º 15
0
/// <summary>
///     Returns true if self and the provided entity have the same Id values
///     and the Ids are not of the default Id value
/// </summary>
        protected bool HasSameNonDefaultIdAs(ShippingOrder compareTo)
        {
            return(!this.IsTransient() && !compareTo.IsTransient() && this.Id.Equals(compareTo.Id));
        }
Ejemplo n.º 16
0
        public void Shipment_persistence_test()
        {
            DateTime now = DateTime.Now;

            // Get datetime without milliseconds
            now = new DateTime(now.Ticks - (now.Ticks % TimeSpan.TicksPerSecond), now.Kind);
            var _actionsbo_shippingorders_shipment = new DSS3_LogisticsPoolingForUrbanDistribution.BO.ShippingOrder
            {
                DepartureDate   = now,
                ArrivalDate     = now,
                Shipper         = "ShippingOrder_Shipper",
                Carrier         = "ShippingOrder_Carrier",
                ItemDescription = "ShippingOrder_ItemDescription",
                Conditions      = "ShippingOrder_Conditions",
                AggregateVolume = 222222.22M,
                Priority        = 1726,
            };
            var _actionsbo_shippingorders_shipment2 = new DSS3_LogisticsPoolingForUrbanDistribution.BO.ShippingOrder
            {
                DepartureDate   = now,
                ArrivalDate     = now,
                Shipper         = "ShippingOrder_Shipper",
                Carrier         = "ShippingOrder_Carrier",
                ItemDescription = "ShippingOrder_ItemDescription",
                Conditions      = "ShippingOrder_Conditions",
                AggregateVolume = 222222.22M,
                Priority        = 8201,
            };
            var _actionsbo_shipmentstatus_shipment = new DSS3_LogisticsPoolingForUrbanDistribution.BO.ShipmentStatus
            {
                TimeReported = now,
                Description  = "ShipmentStatus_Description",
                User         = "******",
            };
            var _actionsbo_shipmentstatus_shipment2 = new DSS3_LogisticsPoolingForUrbanDistribution.BO.ShipmentStatus
            {
                TimeReported = now,
                Description  = "ShipmentStatus_Description",
                User         = "******",
            };
            var _actionsbo_departurepoint_shipment = new DSS3_LogisticsPoolingForUrbanDistribution.BO.Location
            {
                Name     = "Location_Name",
                Street   = "Location_Street",
                City     = "Location_City",
                Country  = "Location_Country",
                Number   = "Location_Number",
                PostCode = "Location_PostCode",
                Label    = "Location_Label",
            };
            var _actionsbo_finaldestination_shipment_1 = new DSS3_LogisticsPoolingForUrbanDistribution.BO.Location
            {
                Name     = "Location_Name",
                Street   = "Location_Street",
                City     = "Location_City",
                Country  = "Location_Country",
                Number   = "Location_Number",
                PostCode = "Location_PostCode",
                Label    = "Location_Label",
            };
            var _actionsbo_driver_shipment = new DSS3_LogisticsPoolingForUrbanDistribution.BO.Driver
            {
                Id                   = 6688,
                UserName             = "******",
                PasswordHash         = "Driver_PasswordHash",
                SecurityStamp        = "Driver_SecurityStamp",
                EmailConfirmed       = true,
                LockoutEnabled       = true,
                PhoneNumberConfirmed = true,
                TwoFactorEnabled     = true,
                AccessFailedCount    = 6962,
                Name                 = "Driver_Name",
                Email                = "Driver_Email",
                PhoneNumber          = "Driver_PhoneNumber",
                LockoutEndDate       = now,
            };
            var _actionsbo_occupiedvolume_shipment_1 = new DSS3_LogisticsPoolingForUrbanDistribution.BO.CustomVolume
            {
                Weight = 222222.22M,
            };
            var _actionsbo_acceptedconditions_shipment = new DSS3_LogisticsPoolingForUrbanDistribution.BO.Condition
            {
                Description = "Condition_Description",
            };
            var _actionsbo_acceptedconditions_shipment2 = new DSS3_LogisticsPoolingForUrbanDistribution.BO.Condition
            {
                Description = "Condition_Description",
            };
            var _actionsbo_vehiculetype_shipment = new DSS3_LogisticsPoolingForUrbanDistribution.BO.Vehicule
            {
                OverHeadCost            = 222222.22M,
                CalculatedTimeCost      = 222222.22M,
                CalculatedDistanceCost  = 222222.22M,
                CalculatedOwnershipCost = 222222.22M,
                VehiculeType            = "Vehicule_VehiculeType",
                Volume           = "Vehicule_Volume",
                CO2perKm         = 222222.22M,
                AmortizationType = "Vehicule_AmortizationType",
                MaximumLoad      = 222222.22M,
            };
            var _actionsbo_path_shipment_2 = new DSS3_LogisticsPoolingForUrbanDistribution.BO.Point
            {
                LocId       = 833,
                Time        = 751,
                Distance    = 2145,
                CurrentLoad = 222222.22M,
            };
            var _actionsbo_path_shipment_22 = new DSS3_LogisticsPoolingForUrbanDistribution.BO.Point
            {
                LocId       = 7501,
                Time        = 1091,
                Distance    = 9420,
                CurrentLoad = 222222.22M,
            };

            new PersistenceSpecification <DSS3_LogisticsPoolingForUrbanDistribution.BO.Shipment>(Session)
            .CheckProperty(p => p.Owner, "Shipment_Owner")
            .CheckProperty(p => p.DepartureTime, now)
            .CheckProperty(p => p.Temperature, "Shipment_Temperature")
            .CheckProperty(p => p.LoadPercentage, 6077)
            .CheckProperty(p => p.TotalVolume, 222222.22M)
            .CheckProperty(p => p.AverageVolume, 222222.22M)
            .CheckProperty(p => p.MaxTravelTime, 7344)
            .CheckBag(p => p.ShippingOrders, (new List <DSS3_LogisticsPoolingForUrbanDistribution.BO.ShippingOrder>
            {
                _actionsbo_shippingorders_shipment,
                _actionsbo_shippingorders_shipment2
            }))
            .CheckBag(p => p.ShipmentStatus, (new List <DSS3_LogisticsPoolingForUrbanDistribution.BO.ShipmentStatus>
            {
                _actionsbo_shipmentstatus_shipment,
                _actionsbo_shipmentstatus_shipment2
            }))
            .CheckReference(p => p.DeparturePoint, _actionsbo_departurepoint_shipment)
            .CheckReference(p => p.FinalDestination, _actionsbo_finaldestination_shipment_1)
            .CheckReference(p => p.Driver, _actionsbo_driver_shipment)
            .CheckReference(p => p.OccupiedVolume, _actionsbo_occupiedvolume_shipment_1)
            .CheckBag(p => p.AcceptedConditions, (new List <DSS3_LogisticsPoolingForUrbanDistribution.BO.Condition>
            {
                _actionsbo_acceptedconditions_shipment,
                _actionsbo_acceptedconditions_shipment2
            }))
            .CheckReference(p => p.VehiculeType, _actionsbo_vehiculetype_shipment)
            .CheckBag(p => p.Path, (new List <DSS3_LogisticsPoolingForUrbanDistribution.BO.Point>
            {
                _actionsbo_path_shipment_2,
                _actionsbo_path_shipment_22
            }))
            .VerifyTheMappings();
        }