예제 #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 GetMandatoryListWithStatusWaitingCancelRequest()
        {
            MandatoryList        mandatoryList = new MandatoryList();
            MandatoryListProduct product       = GetMandatoryListProdcut();

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