public EnvironmentBuilder WithPalletTypeWithSpecificBoxType(BoxType boxType, int minPallet, int maxPallet, int location) { var pallet = new PalletBuilder() .WithBoxType(boxType) .Create(); _locations[_currentMap][location].AddPallet(pallet); return(this); }
private void GenerateRandomPalletsForLocationList(IList <BoxType> boxTypes, int minPallet, int maxPallet, IList <Location> loc) { foreach (var location in loc) { var qtdPallets = _rd.Next(minPallet, maxPallet + 1); for (int i = 0; i < qtdPallets; i++) { var tipoCaixa = _rd.Next(0, boxTypes.Count); var pallet = new PalletBuilder() .WithBoxType(boxTypes[tipoCaixa]) .Create(); location.AddPallet(pallet); } } }
public Pallet WithFullPallet(BoxType boxType) { var pallet = new PalletBuilder().WithBoxType(boxType).Create(); return(pallet); }