예제 #1
0
파일: TestBase.cs 프로젝트: ddksaku/loreal
        protected Animation CreateAnimation(Division division, DistributionChannel channel, AnimationType animationType, Priority priority)
        {

            Animation animation = new Animation();
            animation.ID = Guid.NewGuid();
            animation.AnimationType = animationType;
            animation.Code = "01234";
            animation.Name = "Animation1";
            animation.DateClosed = null;
            animation.DateSAPOrderCreated = null;
            animation.SAPDespatchCode = "6454";
            animation.DefaultCustomerReference = "1234";
            animation.DistributionChannel = channel;
            animation.Priority = priority;
            animation.SalesDrive = CreateSalesDrive(division);
            animation.Status = 1;
            animation.RequestedDeliveryDate = DateTime.Now;
            animation.OnCounterDate = DateTime.Now;
            animation.PLVDeliveryDate = DateTime.Now;
            animation.PLVComponentDate = DateTime.Now;
            animation.StockDate = DateTime.Now;

            return animation;
        }
예제 #2
0
파일: TestBase.cs 프로젝트: ddksaku/loreal
        protected CustomerCapacity CreateCustomerCapacity(Customer customer, AnimationType animationType, Priority priority, ItemType itemType, int capacity)
        {
            CustomerCapacity cusCapacity = new CustomerCapacity();
            cusCapacity.ID = Guid.NewGuid();
            cusCapacity.Customer = customer;
            cusCapacity.AnimationType = animationType;
            cusCapacity.Priority = priority;
            cusCapacity.ItemType = itemType;
            cusCapacity.Capacity = capacity;

            return cusCapacity;
        }
예제 #3
0
파일: TestBase.cs 프로젝트: ddksaku/loreal
        protected AnimationType CreateAnimationType(Division division, String name)
        {
            AnimationType animationType = new AnimationType();
            animationType.ID = Guid.NewGuid();
            animationType.Deleted = false;
            animationType.Name = name;
            animationType.Division = division;

            return animationType;
        }