예제 #1
0
        public MandatoryList GetMandatoryListWithStatusApproveAndChangeRequest()
        {
            List <MandatoryListChangeRequest> mandatoryListChangeRequests = new List <MandatoryListChangeRequest>();
            MandatoryListChangeRequest        changeRequest = new MandatoryListChangeRequest()
            {
                DivisionCode   = "1010",
                DivisionNameAr = "Name Ar",
                DivisionNameEn = "Name En",

                Products = new List <MandatoryListProductChangeRequest>()
                {
                    GetMandatoryListProductChangeRequest(),
                    GetMandatoryListProductChangeRequest()
                }
            };

            changeRequest.Add();
            mandatoryListChangeRequests.Add(changeRequest);
            MandatoryList        mandatoryList = new MandatoryList();
            MandatoryListProduct product       = GetMandatoryListProdcut();

            mandatoryList.ChangeRequests = mandatoryListChangeRequests;
            mandatoryList.Products       = new List <MandatoryListProduct>()
            {
                product,
                product
            };
            mandatoryList.Add();
            mandatoryList.SendToApproval();
            mandatoryList.Approve();
            return(mandatoryList);
        }
예제 #2
0
        public MandatoryList GetMandatoryListWithOutProdcuts()
        {
            MandatoryList mandatoryList = new MandatoryList();

            mandatoryList.Products = new List <MandatoryListProduct>();
            mandatoryList.Add();
            return(mandatoryList);
        }
예제 #3
0
        public MandatoryList GetMandatoryListWithProdcuts()
        {
            MandatoryList        mandatoryList = new MandatoryList();
            MandatoryListProduct product       = GetMandatoryListProdcut();

            mandatoryList.Products = new List <MandatoryListProduct>()
            {
                product,
                product
            };
            mandatoryList.Add();

            return(mandatoryList);
        }
예제 #4
0
        public MandatoryList GetMandatoryListWithStatusRejected()
        {
            MandatoryList        mandatoryList = new MandatoryList();
            MandatoryListProduct product       = GetMandatoryListProdcut();

            mandatoryList.Products = new List <MandatoryListProduct>()
            {
                product,
                product
            };
            mandatoryList.Add();
            mandatoryList.SendToApproval();
            mandatoryList.Reject("Test");
            return(mandatoryList);
        }
예제 #5
0
        public MandatoryList GetMandatoryListWithStatusWaitingApprove()
        {
            MandatoryList        mandatoryList = new MandatoryList();
            MandatoryListProduct product       = GetMandatoryListProdcut();

            mandatoryList.Products = new List <MandatoryListProduct>()
            {
                product,
                product
            };
            mandatoryList.Add();
            mandatoryList.SendToApproval();

            return(mandatoryList);
        }