Example #1
0
        public Deployments()
        {
            var calendars = new Calendars();
            var vehicles  = new Vehicles();

            for (int i = 0; i < Length; i++)
            {
                _deployments.Add(new Deployment
                {
                    StartDate = calendars[i % calendars.Length],
                    StartTime = TimeSpan.FromHours(9),
                    EndDate   = calendars[i % calendars.Length],
                    EndTime   = TimeSpan.FromHours(10),
                    Vehicle   = vehicles[i % vehicles.Length]
                });
            }
        }
Example #2
0
        public Trips()
        {
            var calendars = new Calendars();
            var vehicles  = new Vehicles();

            for (int i = 0; i < Length; i++)
            {
                _trips.Add(new Trip
                {
                    AlternateKey = $"ABC{i}",
                    StartDate    = calendars[i % calendars.Length],
                    StartTime    = TimeSpan.FromHours(9),
                    EndDate      = calendars[i % calendars.Length],
                    EndTime      = TimeSpan.FromHours(10),
                    Vehicle      = vehicles[i % vehicles.Length]
                });
            }
        }
Example #3
0
        public Collisions()
        {
            var calendars    = new Calendars();
            var companies    = new Companies();
            var trips        = new Trips();
            var vehicles     = new Vehicles();
            var vehicleTypes = new VehicleTypes();

            for (int i = 0; i < Length; i++)
            {
                _collisions.Add(new Collision
                {
                    Date             = calendars[i % calendars.Length],
                    Time             = TimeSpan.FromHours(9),
                    Company          = companies[i % companies.Length],
                    Vehicle          = vehicles[i % vehicles.Length],
                    VehicleType      = vehicleTypes[i % vehicleTypes.Length],
                    OtherVehicleType = vehicleTypes[i % vehicleTypes.Length],
                    Trip             = trips[i % trips.Length]
                });
            }
        }