You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
using AUCMA.STORE.Entity.DAO;
|
|
|
|
|
using AUCMA.STORE.Entity.DTO;
|
|
|
|
|
using AutoMapper;
|
|
|
|
|
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
|
|
|
|
using System;
|
|
|
|
|
|
|
|
|
|
namespace AUCMA.STORE.UnitTest
|
|
|
|
|
{
|
|
|
|
|
[TestClass]
|
|
|
|
|
public class UnitTest20
|
|
|
|
|
{
|
|
|
|
|
[TestMethod]
|
|
|
|
|
public void TestMethod1()
|
|
|
|
|
{
|
|
|
|
|
BaseTaskQueue baseTaskQueue = new BaseTaskQueue();
|
|
|
|
|
baseTaskQueue.locationArea = Entity.Enums.LocationArea.Location_Left;
|
|
|
|
|
baseTaskQueue.pilerClaimGoodsLine = 1;
|
|
|
|
|
baseTaskQueue.pilerClaimGoodsRows = 2;
|
|
|
|
|
baseTaskQueue.pilerClaimGoodsTier = 3;
|
|
|
|
|
baseTaskQueue.pilerCode = 1001;
|
|
|
|
|
baseTaskQueue.pilerUnloadLine = 4;
|
|
|
|
|
baseTaskQueue.pilerUnloadRows = 5;
|
|
|
|
|
baseTaskQueue.pilerUnloadTier = 6;
|
|
|
|
|
baseTaskQueue.RECORDTIME = DateTime.Now;
|
|
|
|
|
baseTaskQueue.storeCode = "A";
|
|
|
|
|
baseTaskQueue.taskCode = "1234567";
|
|
|
|
|
baseTaskQueue.taskStatus = Entity.Enums.TaskStatus.Await;
|
|
|
|
|
baseTaskQueue.taskType = Entity.Enums.TaskType.InStore;
|
|
|
|
|
Mapper.Initialize(cret => cret.CreateMap<BaseTaskQueue, PlcDirectiveDTO>());
|
|
|
|
|
|
|
|
|
|
PlcDirectiveDTO plcDirectiveDTO = Mapper.Map<PlcDirectiveDTO>(baseTaskQueue);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|