public Space(Double nLength, Double nWidth, Double nHeight, Double nUsableVolume, Int64 ixLengthUnit, Int64 ixWidthUnit, Int64 ixHeightUnit, Int64 ixUsableVolumeUnit, IUnitOfMeasurementConversionsRepository unitofmeasurementconversionsRepository, Double nUnitMultiplier) { _unitofmeasurementconversionsRepository = unitofmeasurementconversionsRepository; _nLength = convertToCommonUnitValue(nLength, ixLengthUnit); _nWidth = convertToCommonUnitValue(nWidth, ixWidthUnit); _nHeight = convertToCommonUnitValue(nHeight, ixHeightUnit); if (convertToCommonUnitValue(nUsableVolume, ixUsableVolumeUnit) > 0) { _nUsableVolume = convertToCommonUnitValue(nUsableVolume, ixUsableVolumeUnit) * nUnitMultiplier; } else { _nUsableVolume = (_nLength * _nWidth * _nHeight) * nUnitMultiplier; } }
public VolumeAndWeight( IUnitOfMeasurementConversionsRepository unitofmeasurementconversionsRepository, IInventoryUnitsRepository inventoryunitsRepository, IInventoryLocationsRepository inventorylocationsRepository, IHandlingUnitsRepository handlingunitsRepository, IMaterialsRepository materialsRepository, IInventoryUnitTransactionsRepository inventoryunittransactionsRepository ) { _unitofmeasurementconversionsRepository = unitofmeasurementconversionsRepository; _inventoryunitsRepository = inventoryunitsRepository; _inventorylocationsRepository = inventorylocationsRepository; _handlingunitsRepository = handlingunitsRepository; _materialsRepository = materialsRepository; _inventoryunittransactionsRepository = inventoryunittransactionsRepository; }
public UnitOfMeasurementConversionsService(IUnitOfMeasurementConversionsRepository unitofmeasurementconversionsRepository) { _unitofmeasurementconversionsRepository = unitofmeasurementconversionsRepository; }