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); }
public MandatoryList GetMandatoryListWithOutProdcuts() { MandatoryList mandatoryList = new MandatoryList(); mandatoryList.Products = new List <MandatoryListProduct>(); mandatoryList.Add(); return(mandatoryList); }
public MandatoryList GetMandatoryListWithProdcuts() { MandatoryList mandatoryList = new MandatoryList(); MandatoryListProduct product = GetMandatoryListProdcut(); mandatoryList.Products = new List <MandatoryListProduct>() { product, product }; mandatoryList.Add(); return(mandatoryList); }
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); }
public MandatoryList GetMandatoryListWithStatusWaitingApprove() { MandatoryList mandatoryList = new MandatoryList(); MandatoryListProduct product = GetMandatoryListProdcut(); mandatoryList.Products = new List <MandatoryListProduct>() { product, product }; mandatoryList.Add(); mandatoryList.SendToApproval(); return(mandatoryList); }