Exemplo n.º 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);
        }
Exemplo n.º 2
0
        public MandatoryList GetMandatoryListWithOutProdcuts()
        {
            MandatoryList mandatoryList = new MandatoryList();

            mandatoryList.Products = new List <MandatoryListProduct>();
            mandatoryList.Add();
            return(mandatoryList);
        }
Exemplo n.º 3
0
        public MandatoryList GetMandatoryListWithProdcuts()
        {
            MandatoryList        mandatoryList = new MandatoryList();
            MandatoryListProduct product       = GetMandatoryListProdcut();

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

            return(mandatoryList);
        }
Exemplo n.º 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);
        }
Exemplo n.º 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);
        }