using CareFusion.Mosaic.Interfaces.Types.Input;
using CareFusion.Mosaic.Interfaces.Types.Packs;
using StorageSystem.Simulator.Interfaces;

namespace StorageSystem.Simulator.Factories
{
    public class RobotPackFactory : IRobotPackFactory
    {
        public RobotPack Create(StockDelivery stockDelivery, StockDeliveryItem stockDeliveryItem)
        {
            return new RobotPack()
            {
                DeliveryNumber = stockDelivery.DeliveryNumber,
                BatchNumber = stockDeliveryItem.BatchNumber,
                TenantID = stockDeliveryItem.TenantID,
                ExternalID = stockDeliveryItem.ExternalID,
                MachineLocation = stockDeliveryItem.MachineLocation,
                StockLocationID = stockDeliveryItem.StockLocationID,
                ExpiryDate = stockDeliveryItem.ExpiryDate,
            };
        }
    }
}
