public BillInfo GetBillInfoData() { BillInfoModel billInfoModel = new BillInfoModel() { AmountDue = _amountDue, DueDate = _dueDt, ExpDate = _expiryDate, AgencyCode = _agencyCode, ActionStatus = _actionStatus, ChapterNumber = _chapterNumber, NumOfSubSections = _sectionNumber, SequenceNumber = _sequanceNumber, NumOfSubDepartments = _subdepartmentNumber, SectionId = _subsectionsNumber, BankBranchId = _bankbranch, BillInvoiceNumber = _billInvoicenumber, BillStatusId = _billStatusId, ConditionBookletId = _conditionalBookletId, BillReferenceInfo = _billreferenceInfo, CreatedBy = _createdBy, CreatedAt = _createdAt, PurchaseDate = _purchaseDate, }; var billInfo = new BillInfo(billInfoModel); var conditionbooklet = new ConditionsBooklet(_cr, billInfo); Tender tender = new Tender(); Supplier supplier = new Supplier(_cr, _cr, new List <UserNotificationSetting>()); var invitation = new Invitation(_cr, Enums.InvitationStatus.Approved, Enums.InvitationRequestType.Invitation, true); tender.SetOfferPresenationDate_ForTest(); tender.SetTenderName_ForTest("test"); conditionbooklet.Test_AddTender(tender); conditionbooklet.Test_AddSupplier(supplier); invitation.Test_AddTender(tender); billInfo.Test_AddInvitation(invitation); billInfo.Test_AddBooklet(conditionbooklet); return(billInfo); }
public List <BillInfo> GetBillsInfoData() { BillInfoModel billInfoModel = new BillInfoModel() { AmountDue = _amountDue, DueDate = _dueDt, ExpDate = _expiryDate, AgencyCode = _agencyCode, ActionStatus = _actionStatus, ChapterNumber = _chapterNumber, NumOfSubSections = _sectionNumber, SequenceNumber = _sequanceNumber, NumOfSubDepartments = _subdepartmentNumber, SectionId = _subsectionsNumber, BankBranchId = _bankbranch, BillInvoiceNumber = _billInvoicenumber, BillStatusId = _billStatusId, ConditionBookletId = _conditionalBookletId, BillReferenceInfo = _billreferenceInfo, CreatedBy = _createdBy, CreatedAt = _createdAt, PurchaseDate = _purchaseDate, }; BillInfo billInfo = new BillInfo(billInfoModel); var conditionbooklet = new ConditionsBooklet(_cr, billInfo); Tender tender = new Tender(); tender.SetOfferPresenationDate_ForTest(); conditionbooklet.Test_AddTender(tender); billInfo.Test_AddInvitation(new Invitation()); billInfo.Test_AddBooklet(conditionbooklet); List <BillInfo> billInfos = new List <BillInfo>(); billInfos.Add(billInfo); return(billInfos); }