예제 #1
0
파일: TestBase.cs 프로젝트: ddksaku/loreal
        protected Sale CreateSale(Customer customer, BrandAxe brandAxe, decimal manualValue)
        {
            Sale sale = new Sale();
            sale.ID = Guid.NewGuid();
            sale.Customer = customer;
            sale.BrandAxe = brandAxe;
            sale.ManualValue = manualValue;
            sale.Date = DateTime.Now.AddDays(-7);

            return sale;
        }
예제 #2
0
파일: TestBase.cs 프로젝트: ddksaku/loreal
        protected AnimationProduct CreateAnimationProduct(Product product, Division division, Animation animation, int normalMultiple, int warehouseMultiple, BrandAxe brandAxe, Signature signature)
        {
            AnimationProduct animationProduct = new AnimationProduct();
            animationProduct.ID = Guid.NewGuid();
            animationProduct.Animation = animation;
            animationProduct.ItemType = CreateItemType(division);
            animationProduct.ItemGroup = CreateItemGroup(division);
            animationProduct.Product = product;
            animationProduct.Signature = signature;
            animationProduct.BrandAxe = brandAxe;
            animationProduct.Multiple = CreateMultiple(animationProduct.Product, normalMultiple);
            animationProduct.Multiple1 = CreateMultiple(animationProduct.Product, warehouseMultiple);
            animationProduct.OnCAS = true;
            animationProduct.ConfirmedMADMonth = DateTime.Now;
            animationProduct.StockRisk = true;
            animationProduct.DeliveryRisk = true;
            animationProduct.SortOrder = 1;

            return animationProduct;
        }
예제 #3
0
파일: TestBase.cs 프로젝트: ddksaku/loreal
        protected AnimationProduct CreateAnimationProduct(Division division, Animation animation, int normalMultiple, int warehouseMultiple, Category category, BrandAxe brandAxe, ItemType itemType)
        {
            AnimationProduct animationProduct = new AnimationProduct();
            animationProduct.ID = Guid.NewGuid();
            animationProduct.Animation = animation;
            animationProduct.ItemType = itemType;
            animationProduct.ItemGroup = CreateItemGroup(division);
            animationProduct.Product = CreateProduct(division);
            animationProduct.Signature = CreateSignature(division);
            if (normalMultiple == warehouseMultiple)
            {
                Multiple multiple = CreateMultiple(animationProduct.Product, normalMultiple);
                animationProduct.Multiple = multiple;
                animationProduct.Multiple1 = multiple;
            }
            else
            {
                animationProduct.Multiple = CreateMultiple(animationProduct.Product, normalMultiple);
                animationProduct.Multiple1 = CreateMultiple(animationProduct.Product, warehouseMultiple);
            }
            animationProduct.OnCAS = true;
            animationProduct.ConfirmedMADMonth = DateTime.Now;
            animationProduct.StockRisk = true;
            animationProduct.DeliveryRisk = true;
            animationProduct.SortOrder = 1;
            animationProduct.Category = category;
            animationProduct.BrandAxe = brandAxe;

            return animationProduct;
        }
예제 #4
0
파일: TestBase.cs 프로젝트: ddksaku/loreal
        protected BrandAxe CreateBrandAxe(Signature signature, String name, String code)
        {
            BrandAxe brandAxe = new BrandAxe();
            brandAxe.ID = Guid.NewGuid();
            brandAxe.Signature = signature;
            brandAxe.Name = name;
            brandAxe.Code = code;
            brandAxe.Brand = true;
            brandAxe.Deleted = false;

            return brandAxe;
        }
예제 #5
0
파일: TestBase.cs 프로젝트: ddksaku/loreal
        protected BrandAxe CreateBrandAxe(Signature signature)
        {
            BrandAxe brandAxe = new BrandAxe();
            brandAxe.ID = Guid.NewGuid();
            brandAxe.Signature = signature;
            brandAxe.Name = "BrandAxe1";
            brandAxe.Code = "789";
            brandAxe.Brand = true;
            brandAxe.Deleted = false;

            return brandAxe;
        }
예제 #6
0
파일: TestBase.cs 프로젝트: ddksaku/loreal
        protected CustomerBrandExclusion CreateCustomerBrandExclusion(Customer customer, BrandAxe brand)
        {
            CustomerBrandExclusion cbe = new CustomerBrandExclusion();
            cbe.ID = Guid.NewGuid();
            cbe.Customer = customer;
            cbe.BrandAxe = brand;
            cbe.Excluded = true;

            return cbe;
        }