Ejemplo n.º 1
0
 public TransportOrderPerformanceController(ITransportOrderService transportOrderService, ITransporterService transporterService, ITransportOrderDetailService transportOrderDetailService, IHubService hubService, IAdminUnitService adminUnitService)
 {
     _transportOrderService       = transportOrderService;
     _transportOrderDetailService = transportOrderDetailService;
     _hubService       = hubService;
     _adminUnitService = adminUnitService;
 }
 public ValidatedPaymentRequestController(IBusinessProcessService paramBusinessProcessService
                                          , IBusinessProcessStateService paramBusinessProcessStateService
                                          , IApplicationSettingService paramApplicationSettingService
                                          , ITransportOrderService paramTransportOrderService
                                          , ITransporterAgreementVersionService transporterAgreementVersionService
                                          , IWorkflowStatusService workflowStatusService, ITransporterService transporterService
                                          , ITransporterChequeService transporterChequeService, IUserProfileService userProfileService
                                          , ITransporterPaymentRequestService transporterPaymentRequestService, IBidWinnerService bidWinnerService
                                          , IUserAccountService userAccountService, IDispatchService dispatchService
                                          , ITransporterChequeDetailService transporterChequeDetailService, ITransportOrderDetailService transportOrderDetailService)
 {
     _businessProcessService             = paramBusinessProcessService;
     _businessProcessStateService        = paramBusinessProcessStateService;
     _applicationSettingService          = paramApplicationSettingService;
     _transportOrderService              = paramTransportOrderService;
     _transporterAgreementVersionService = transporterAgreementVersionService;
     _workflowStatusService              = workflowStatusService;
     _transporterService               = transporterService;
     _transporterChequeService         = transporterChequeService;
     _userProfileService               = userProfileService;
     _transporterPaymentRequestService = transporterPaymentRequestService;
     _bidWinnerService               = bidWinnerService;
     _userAccountService             = userAccountService;
     _dispatchService                = dispatchService;
     _transporterChequeDetailService = transporterChequeDetailService;
     _transportOrderDetailService    = transportOrderDetailService;
 }
 public TransportOrderPerformanceController(ITransportOrderService transportOrderService, ITransporterService transporterService, ITransportOrderDetailService transportOrderDetailService, IHubService hubService, IAdminUnitService adminUnitService)
 {
     _transportOrderService = transportOrderService;
     _transportOrderDetailService = transportOrderDetailService;
     _hubService = hubService;
     _adminUnitService = adminUnitService;
 }
 public TransporterPaymentRequestController(IBusinessProcessService _paramBusinessProcessService
                                            , IBusinessProcessStateService _paramBusinessProcessStateService
                                            , IApplicationSettingService _paramApplicationSettingService
                                            , ITransporterPaymentRequestService transporterPaymentRequestService
                                            , ITransportOrderService _paramTransportOrderService
                                            , IBidWinnerService bidWinnerService
                                            , IDispatchService dispatchService
                                            , IWorkflowStatusService workflowStatusService
                                            , IUserAccountService userAccountService
                                            , Services.Procurement.ITransporterService transporterService,
                                            ITransportOrderService transportOrderService,
                                            ITransportOrderDetailService transportOrderDetailService, ICommonService commodityService
                                            , IFlowTemplateService flowTemplateService)
 {
     _BusinessProcessService           = _paramBusinessProcessService;
     _BusinessProcessStateService      = _paramBusinessProcessStateService;
     _ApplicationSettingService        = _paramApplicationSettingService;
     _transporterPaymentRequestService = transporterPaymentRequestService;
     _TransportOrderService            = _paramTransportOrderService;
     _bidWinnerService            = bidWinnerService;
     _dispatchService             = dispatchService;
     _workflowStatusService       = workflowStatusService;
     _userAccountService          = userAccountService;
     _transporterService          = transporterService;
     _transportOrderService       = transportOrderService;
     _transportOrderDetailService = transportOrderDetailService;
     _commodityService            = commodityService;
     _flowTemplateService         = flowTemplateService;
 }
Ejemplo n.º 5
0
        public DeliveryController(ITransportOrderService transportOrderService,
                                  IWorkflowStatusService workflowStatusService,
                                  IDispatchAllocationService dispatchAllocationService,
                                  IDeliveryService deliveryService,
                                  IDispatchService dispatchService,
                                  IDeliveryDetailService deliveryDetailService,
                                  INotificationService notificationService, IActionTypesService actionTypeService, IUserAccountService userAccountService,
                                  Cats.Services.EarlyWarning.ICommodityService commodityService, Cats.Services.EarlyWarning.IUnitService unitService,
                                  Cats.Services.Transaction.ITransactionService transactionService, IBusinessProcessService businessProcessService, IApplicationSettingService applicationSettingService, ITransporterPaymentRequestService transporterPaymentRequestService)
        {
            _transportOrderService     = transportOrderService;
            _workflowStatusService     = workflowStatusService;
            _dispatchAllocationService = dispatchAllocationService;
            _deliveryService           = deliveryService;
            _dispatchService           = dispatchService;
            _deliveryDetailService     = deliveryDetailService;
            _notificationService       = notificationService;

            _actionTypeService = actionTypeService;

            _userAccountService               = userAccountService;
            _commodityService                 = commodityService;
            _unitService                      = unitService;
            _transactionService               = transactionService;
            _businessProcessService           = businessProcessService;
            _applicationSettingService        = applicationSettingService;
            _transporterPaymentRequestService = transporterPaymentRequestService;
        }
Ejemplo n.º 6
0
        public DeliveryController(ITransportOrderService transportOrderService,
                                      IWorkflowStatusService workflowStatusService,
                                      IDispatchAllocationService dispatchAllocationService,
                                      IDeliveryService deliveryService,
            IDispatchService dispatchService,
            IDeliveryDetailService deliveryDetailService,
            INotificationService notificationService, IActionTypesService actionTypeService, IUserAccountService userAccountService,
            Cats.Services.EarlyWarning.ICommodityService commodityService, Cats.Services.EarlyWarning.IUnitService unitService,
            Cats.Services.Transaction.ITransactionService transactionService, IBusinessProcessService businessProcessService, IApplicationSettingService applicationSettingService, ITransporterPaymentRequestService transporterPaymentRequestService)
        {
            _transportOrderService = transportOrderService;
            _workflowStatusService = workflowStatusService;
            _dispatchAllocationService = dispatchAllocationService;
            _deliveryService = deliveryService;
            _dispatchService = dispatchService;
            _deliveryDetailService = deliveryDetailService;
            _notificationService = notificationService;

            _actionTypeService = actionTypeService;

            _userAccountService = userAccountService;
            _commodityService = commodityService;
            _unitService = unitService;
            _transactionService = transactionService;
            _businessProcessService = businessProcessService;
            _applicationSettingService = applicationSettingService;
            _transporterPaymentRequestService = transporterPaymentRequestService;
        }
Ejemplo n.º 7
0
 public PriceQuotationController(ITransportBidPlanService transportBidPlanServiceParam
                                     , IAdminUnitService adminUnitServiceParam
                                     , IProgramService programServiceParam
                                     , ITransportBidPlanDetailService transportBidPlanDetailServiceParam
                                     , IHubService hubServiceParam
                                     , ITransportBidQuotationService bidQuotationServiceParam
                                     , ITransporterService transporterServiceParam
                                     , IBidService bidServiceParam
                                     , ITransportBidQuotationService transportBidQuotationService
                                     , IBidWinnerService bidWinnerService
                                     , IBusinessProcessService businessProcessService
                                     , IApplicationSettingService applicationSettingService
                                     , ITransportBidQuotationHeaderService transportBidQuotationHeaderService
                                     , ITransportOrderService transportOrderService  )
 {
     this._transportBidPlanService = transportBidPlanServiceParam;
     this._adminUnitService = adminUnitServiceParam;
     this._programService = programServiceParam;
     this._transportBidPlanDetailService = transportBidPlanDetailServiceParam;
     this._hubService = hubServiceParam;
     this._bidQuotationService = bidQuotationServiceParam;
     this._bidService = bidServiceParam;
     this._transporterService = transporterServiceParam;
     this._transportBidQuotationService = transportBidQuotationService;
     this._bidWinnerService = bidWinnerService;
     this._BusinessProcessService = businessProcessService;
     this._transportBidQuotationHeaderService = transportBidQuotationHeaderService;
     this._ApplicationSettingService = applicationSettingService;
     _transportOrderService = transportOrderService;
 }
 public TransporterPaymentRequestController(IBusinessProcessService _paramBusinessProcessService
                                            , IBusinessProcessStateService _paramBusinessProcessStateService
                                            , IApplicationSettingService _paramApplicationSettingService
                                            , ITransporterPaymentRequestService transporterPaymentRequestService
                                            , ITransportOrderService _paramTransportOrderService
                                            , IBidWinnerService bidWinnerService
                                            , IDispatchService dispatchService
                                            , IWorkflowStatusService workflowStatusService
                                            , IUserAccountService userAccountService
                                            , Services.Procurement.ITransporterService transporterService,
                                            ITransportOrderService transportOrderService,
                                            ITransportOrderDetailService transportOrderDetailService, ICommonService commodityService
                                            , IFlowTemplateService flowTemplateService)
 {
     _BusinessProcessService = _paramBusinessProcessService;
     _BusinessProcessStateService = _paramBusinessProcessStateService;
     _ApplicationSettingService = _paramApplicationSettingService;
     _transporterPaymentRequestService = transporterPaymentRequestService;
     _TransportOrderService = _paramTransportOrderService;
     _bidWinnerService = bidWinnerService;
     _dispatchService = dispatchService;
     _workflowStatusService = workflowStatusService;
     _userAccountService = userAccountService;
     _transporterService = transporterService;
     _transportOrderService = transportOrderService;
     _transportOrderDetailService = transportOrderDetailService;
     _commodityService = commodityService;
     _flowTemplateService = flowTemplateService;
 }
Ejemplo n.º 9
0
        public void Setup()
        {
            List <TransportOrder> transportOrder = new List <TransportOrder>();

            {
                new TransportOrder()
                {
                    TransportOrderID         = 1,
                    TransportOrderNo         = "123",
                    ContractNumber           = "123",
                    OrderDate                = new DateTime(12 / 12 / 2012),
                    RequestedDispatchDate    = new DateTime(11 / 11 / 2012),
                    OrderExpiryDate          = new DateTime(10 / 10 / 2012),
                    BidDocumentNo            = "em/200/2006",
                    PerformanceBondReceiptNo = "123456",
                    TransporterID            = 2,
                    ConsignerName            = "name",
                    TransporterSignedName    = "Signed name",
                    ConsignerDate            = new DateTime(02 / 02 / 2013),
                    TransporterSignedDate    = new DateTime(03 / 03 / 2012),
                };
            }
            ;

            Mock <ITransportOrderService> mockTransportOrderService = new Mock <ITransportOrderService>();

            mockTransportOrderService.Setup(m => m.GetAllTransportOrder()).Returns(transportOrder);
            this.MockTransportOrderService = mockTransportOrderService.Object;
            _dispatchLocationsController   = new DispatchLocationsController(MockTransportOrderService);
        }
 public ValidatedPaymentRequestController(IBusinessProcessService paramBusinessProcessService
                                 , IBusinessProcessStateService paramBusinessProcessStateService
                                 , IApplicationSettingService paramApplicationSettingService
                                 , ITransportOrderService paramTransportOrderService
                                 , ITransporterAgreementVersionService transporterAgreementVersionService
                                 , IWorkflowStatusService workflowStatusService, ITransporterService transporterService
                                 , ITransporterChequeService transporterChequeService, IUserProfileService userProfileService 
                                 ,ITransporterPaymentRequestService transporterPaymentRequestService, IBidWinnerService bidWinnerService
                                 , IUserAccountService userAccountService, IDispatchService dispatchService
                                , ITransporterChequeDetailService transporterChequeDetailService,ITransportOrderDetailService transportOrderDetailService)
 {
     _businessProcessService = paramBusinessProcessService;
         _businessProcessStateService = paramBusinessProcessStateService;
         _applicationSettingService = paramApplicationSettingService;
         _transportOrderService = paramTransportOrderService;
         _transporterAgreementVersionService = transporterAgreementVersionService;
         _workflowStatusService = workflowStatusService;
         _transporterService = transporterService;
         _transporterChequeService = transporterChequeService;
          _userProfileService = userProfileService;
         _transporterPaymentRequestService = transporterPaymentRequestService;
         _bidWinnerService = bidWinnerService;
         _userAccountService = userAccountService;
         _dispatchService = dispatchService;
         _transporterChequeDetailService = transporterChequeDetailService;
        _transportOrderDetailService = transportOrderDetailService;
 }
Ejemplo n.º 11
0
 public PriceQuotationController(ITransportBidPlanService transportBidPlanServiceParam
                                 , IAdminUnitService adminUnitServiceParam
                                 , IProgramService programServiceParam
                                 , ITransportBidPlanDetailService transportBidPlanDetailServiceParam
                                 , IHubService hubServiceParam
                                 , ITransportBidQuotationService bidQuotationServiceParam
                                 , ITransporterService transporterServiceParam
                                 , IBidService bidServiceParam
                                 , ITransportBidQuotationService transportBidQuotationService
                                 , IBidWinnerService bidWinnerService
                                 , IBusinessProcessService businessProcessService
                                 , IApplicationSettingService applicationSettingService
                                 , ITransportBidQuotationHeaderService transportBidQuotationHeaderService
                                 , ITransportOrderService transportOrderService)
 {
     this._transportBidPlanService       = transportBidPlanServiceParam;
     this._adminUnitService              = adminUnitServiceParam;
     this._programService                = programServiceParam;
     this._transportBidPlanDetailService = transportBidPlanDetailServiceParam;
     this._hubService                         = hubServiceParam;
     this._bidQuotationService                = bidQuotationServiceParam;
     this._bidService                         = bidServiceParam;
     this._transporterService                 = transporterServiceParam;
     this._transportBidQuotationService       = transportBidQuotationService;
     this._bidWinnerService                   = bidWinnerService;
     this._BusinessProcessService             = businessProcessService;
     this._transportBidQuotationHeaderService = transportBidQuotationHeaderService;
     this._ApplicationSettingService          = applicationSettingService;
     _transportOrderService                   = transportOrderService;
 }
Ejemplo n.º 12
0
 public PaymentRequestController(IBusinessProcessService _paramBusinessProcessService
                                 , IBusinessProcessStateService _paramBusinessProcessStateService
                                 , IApplicationSettingService _paramApplicationSettingService
                                 , IPaymentRequestService _paramPaymentRequestservice
                                 , ITransportOrderService _paramTransportOrderService
                                 )
 {
     _BusinessProcessService      = _paramBusinessProcessService;
     _BusinessProcessStateService = _paramBusinessProcessStateService;
     _ApplicationSettingService   = _paramApplicationSettingService;
     _PaymentRequestservice       = _paramPaymentRequestservice;
     _TransportOrderService       = _paramTransportOrderService;
 }
Ejemplo n.º 13
0
 public PaymentRequestController(IBusinessProcessService _paramBusinessProcessService
                                 , IBusinessProcessStateService _paramBusinessProcessStateService
                                 , IApplicationSettingService _paramApplicationSettingService
                                 , IPaymentRequestService _paramPaymentRequestservice
                                 , ITransportOrderService _paramTransportOrderService
                                 )
 {
     _BusinessProcessService=_paramBusinessProcessService;
         _BusinessProcessStateService=_paramBusinessProcessStateService;
         _ApplicationSettingService=_paramApplicationSettingService;
         _PaymentRequestservice =_paramPaymentRequestservice;
         _TransportOrderService = _paramTransportOrderService;
 }
Ejemplo n.º 14
0
 public TransporterPerformanceController(ITransportOrderService transportOrderService, IUserAccountService userAccountService,
                                         IDispatchAllocationService dispatchAllocationService, ITransportOrderDetailService transportOrderDetailService,
                                         IHubService hubService, IAdminUnitService adminUnitService, IDispatchService dispatchService, IDeliveryService deliveryService)
 {
     _transportOrderService       = transportOrderService;
     _userAccountService          = userAccountService;
     _dispatchAllocationService   = dispatchAllocationService;
     _transportOrderDetailService = transportOrderDetailService;
     _hubService       = hubService;
     _adminUnitService = adminUnitService;
     _dispatchService  = dispatchService;
     _deliveryService  = deliveryService;
 }
 public TransporterPerformanceController(ITransportOrderService transportOrderService,IUserAccountService userAccountService,
                                       IDispatchAllocationService dispatchAllocationService, ITransportOrderDetailService transportOrderDetailService,
                                       IHubService hubService, IAdminUnitService adminUnitService,IDispatchService dispatchService,IDeliveryService deliveryService)
 {
     _transportOrderService = transportOrderService;
     _userAccountService = userAccountService;
     _dispatchAllocationService = dispatchAllocationService;
     _transportOrderDetailService = transportOrderDetailService;
     _hubService = hubService;
     _adminUnitService = adminUnitService;
     _dispatchService = dispatchService;
     _deliveryService = deliveryService;
 }
Ejemplo n.º 16
0
 public ContractAdministrationController(IPaymentRequestService paymentRequestService, ITransporterService transporterService,
                                         ITransportOrderService transportOrderService, IUserAccountService userAccountService, IDispatchAllocationService dispatchAllocationService,
                                         IWorkflowStatusService workflowStatusService, IDeliveryService distributionService, IBidWinnerService bidWinnerService,
                                         Cats.Services.EarlyWarning.IAdminUnitService adminUnitService)
 {
     _adminUnitService          = adminUnitService;
     _paymentRequestService     = paymentRequestService;
     _transporterService        = transporterService;
     _transportOrderService     = transportOrderService;
     _userAccountService        = userAccountService;
     _dispatchAllocationService = dispatchAllocationService;
     _workflowStatusService     = workflowStatusService;
     _distributionService       = distributionService;
     _bidWinnerService          = bidWinnerService;
 }
 public ContractAdministrationController(IPaymentRequestService paymentRequestService, ITransporterService transporterService,
     ITransportOrderService transportOrderService, IUserAccountService userAccountService, IDispatchAllocationService dispatchAllocationService, 
     IWorkflowStatusService workflowStatusService, IDeliveryService distributionService, IBidWinnerService bidWinnerService,
     Cats.Services.EarlyWarning.IAdminUnitService adminUnitService)
 {
     _adminUnitService = adminUnitService;
     _paymentRequestService = paymentRequestService;
     _transporterService = transporterService;
     _transportOrderService = transportOrderService;
     _userAccountService = userAccountService;
     _dispatchAllocationService = dispatchAllocationService;
     _workflowStatusService = workflowStatusService;
     _distributionService = distributionService;
     _bidWinnerService = bidWinnerService;
 }
Ejemplo n.º 18
0
 public HomeController(IReliefRequisitionService reliefRequisitionService,
     hub.IDispatchAllocationService dispatchAllocationService,
     IUserAccountService userAccountService,
     ITransportOrderService transportOrderService,
     ITransportOrderDetailService transportOrderDetailService,
     hub.DispatchService dispatchService,
     hub.DispatchDetailService dispatchDetailService)
 {
     this._reliefRequisitionService = reliefRequisitionService;
     _dispatchAllocationService = dispatchAllocationService;
     _userAccountService = userAccountService;
     _transportOrderService = transportOrderService;
     _transportOrderDetailService = transportOrderDetailService;
     _dispatchService = dispatchService;
     _dispatchDetailService = dispatchDetailService;
 }
Ejemplo n.º 19
0
 public TransportOrderController(ITransportOrderService transportOrderService,
     ITransportRequisitionService transportRequisitionService,
     IWorkflowStatusService workflowStatusService, ILog log,
     ITransReqWithoutTransporterService transReqWithoutTransporterService, ITransportOrderDetailService transportOrderDetailService,
     IAdminUnitService adminUnitService, ITransporterService transporterService, ITransportBidQuotationService bidQuotationService)
 {
     this._transportOrderService = transportOrderService;
     this._transportRequisitionService = transportRequisitionService;
     this._workflowStatusService = workflowStatusService;
     _log = log;
     _adminUnitService = adminUnitService;
     _transporterService = transporterService;
     _transReqWithoutTransporterService = transReqWithoutTransporterService;
     _transportOrderDetailService = transportOrderDetailService;
     _bidQuotationService = bidQuotationService;
 }
Ejemplo n.º 20
0
 public DuplicatedController(ITransportOrderService transportOrderService,
                             ITransportRequisitionService transportRequisitionService,
                             IWorkflowStatusService workflowStatusService, ILog log,
                             ITransReqWithoutTransporterService transReqWithoutTransporterService, ITransportOrderDetailService transportOrderDetailService,
                             IAdminUnitService adminUnitService, ITransporterService transporterService, ITransportBidQuotationService bidQuotationService)
 {
     this._transportOrderService       = transportOrderService;
     this._transportRequisitionService = transportRequisitionService;
     this._workflowStatusService       = workflowStatusService;
     _log = log;
     _adminUnitService   = adminUnitService;
     _transporterService = transporterService;
     _transReqWithoutTransporterService = transReqWithoutTransporterService;
     _transportOrderDetailService       = transportOrderDetailService;
     _bidQuotationService = bidQuotationService;
 }
 public ValidatedPaymentRequestController(IBusinessProcessService paramBusinessProcessService
                                 , IBusinessProcessStateService paramBusinessProcessStateService
                                 , IApplicationSettingService paramApplicationSettingService
                                 , IPaymentRequestService paramPaymentRequestservice
                                 , ITransportOrderService paramTransportOrderService
                                 , ITransporterAgreementVersionService transporterAgreementVersionService
                                 , IWorkflowStatusService workflowStatusService, ITransporterService transporterService
                                 , ITransporterChequeService transporterChequeService, IUserProfileService userProfileService)
 {
     _businessProcessService = paramBusinessProcessService;
         _businessProcessStateService = paramBusinessProcessStateService;
         _applicationSettingService = paramApplicationSettingService;
         _paymentRequestservice = paramPaymentRequestservice;
         _transportOrderService = paramTransportOrderService;
         _transporterAgreementVersionService = transporterAgreementVersionService;
         _workflowStatusService = workflowStatusService;
         _transporterService = transporterService;
         _transporterChequeService = transporterChequeService;
          _userProfileService = userProfileService;
 }
Ejemplo n.º 22
0
 public HomeController(IReliefRequisitionService reliefRequisitionService,
     hub.IDispatchAllocationService dispatchAllocationService,
     IUserAccountService userAccountService,
     ITransportOrderService transportOrderService,
     ITransportOrderDetailService transportOrderDetailService,
     hub.DispatchService dispatchService,
     hub.DispatchDetailService dispatchDetailService, ISIPCAllocationService sipcAllocationService, IAdminUnitService adminUnitService, IHRDService hrdService, IBidWinnerService bidWinnerService, IBidService bidService)
 {
     this._reliefRequisitionService = reliefRequisitionService;
     _dispatchAllocationService = dispatchAllocationService;
     _userAccountService = userAccountService;
     _transportOrderService = transportOrderService;
     _transportOrderDetailService = transportOrderDetailService;
     _dispatchService = dispatchService;
     _dispatchDetailService = dispatchDetailService;
     _sipcAllocationService = sipcAllocationService;
     _adminUnitService = adminUnitService;
     _hrdService = hrdService;
     _bidWinnerService = bidWinnerService;
     _bidService = bidService;
 }
Ejemplo n.º 23
0
 public HomeController(IReliefRequisitionService reliefRequisitionService,
     hub.IDispatchAllocationService dispatchAllocationService,
     IUserAccountService userAccountService,
     ITransportOrderService transportOrderService,
     ITransportOrderDetailService transportOrderDetailService,
     hub.DispatchService dispatchService,
     hub.DispatchDetailService dispatchDetailService,
     ISIPCAllocationService sipcAllocationService,
     IAdminUnitService adminUnitService,
     IHRDService hrdService,
     IBidWinnerService bidWinnerService,
     IBidService bidService,
     IHRDDetailService hrdDetailService,
     IRationDetailService rationDetailService,
     IProgramService programService,
     IStockStatusService stockStatusService, IReceiptPlanDetailService receiptPlanDetailService, IDeliveryService deliveryService, IGiftCertificateDetailService giftCertificateDetailService, hub.IReceiptAllocationService receiptAllocationService)
 {
     this._reliefRequisitionService = reliefRequisitionService;
     _dispatchAllocationService = dispatchAllocationService;
     _userAccountService = userAccountService;
     _transportOrderService = transportOrderService;
     _transportOrderDetailService = transportOrderDetailService;
     _dispatchService = dispatchService;
     _dispatchDetailService = dispatchDetailService;
     _sipcAllocationService = sipcAllocationService;
     _adminUnitService = adminUnitService;
     _hrdService = hrdService;
     _bidWinnerService = bidWinnerService;
     _bidService = bidService;
     _hrdDetailService = hrdDetailService;
     _rationDetailService = rationDetailService;
     _programService = programService;
     _stockStatusService = stockStatusService;
     _receiptPlanDetailService = receiptPlanDetailService;
     _deliveryService = deliveryService;
     _giftCertificateDetailService = giftCertificateDetailService;
     _receiptAllocationService = receiptAllocationService;
 }
Ejemplo n.º 24
0
 public HomeController(IReliefRequisitionService reliefRequisitionService,
                       hub.IDispatchAllocationService dispatchAllocationService,
                       IUserAccountService userAccountService,
                       ITransportOrderService transportOrderService,
                       ITransportOrderDetailService transportOrderDetailService,
                       hub.DispatchService dispatchService,
                       hub.DispatchDetailService dispatchDetailService,
                       ISIPCAllocationService sipcAllocationService,
                       IAdminUnitService adminUnitService,
                       IHRDService hrdService,
                       IBidWinnerService bidWinnerService,
                       IBidService bidService,
                       IHRDDetailService hrdDetailService,
                       IRationDetailService rationDetailService,
                       IProgramService programService,
                       IStockStatusService stockStatusService, IReceiptPlanDetailService receiptPlanDetailService, IDeliveryService deliveryService, IGiftCertificateDetailService giftCertificateDetailService, hub.IReceiptAllocationService receiptAllocationService)
 {
     this._reliefRequisitionService = reliefRequisitionService;
     _dispatchAllocationService     = dispatchAllocationService;
     _userAccountService            = userAccountService;
     _transportOrderService         = transportOrderService;
     _transportOrderDetailService   = transportOrderDetailService;
     _dispatchService              = dispatchService;
     _dispatchDetailService        = dispatchDetailService;
     _sipcAllocationService        = sipcAllocationService;
     _adminUnitService             = adminUnitService;
     _hrdService                   = hrdService;
     _bidWinnerService             = bidWinnerService;
     _bidService                   = bidService;
     _hrdDetailService             = hrdDetailService;
     _rationDetailService          = rationDetailService;
     _programService               = programService;
     _stockStatusService           = stockStatusService;
     _receiptPlanDetailService     = receiptPlanDetailService;
     _deliveryService              = deliveryService;
     _giftCertificateDetailService = giftCertificateDetailService;
     _receiptAllocationService     = receiptAllocationService;
 }
Ejemplo n.º 25
0
 public TransportOrderController(ITransportOrderService transportOrderService, ITransReqWithoutTransporterService transReqWithoutTransporterService, IWorkflowStatusService workflowStatusService, IUserAccountService userAccountService)
 {
     _transportOrderService = transportOrderService;
     _workflowStatusService = workflowStatusService;
     _userAccountService    = userAccountService;
 }
        public void Setup()
        {
            List<TransportOrder> transportOrder = new List<TransportOrder>();
            {
                new TransportOrder()
                {
                    TransportOrderID = 1,
                    TransportOrderNo = "123",
                    ContractNumber = "123",
                    OrderDate = new DateTime(12 / 12 / 2012),
                    RequestedDispatchDate = new DateTime(11 / 11 / 2012),
                    OrderExpiryDate = new DateTime(10 / 10 / 2012),
                    BidDocumentNo = "em/200/2006",
                    PerformanceBondReceiptNo = "123456",
                    TransporterID = 2,
                    ConsignerName = "name",
                    TransporterSignedName = "Signed name",
                    ConsignerDate = new DateTime(02 / 02 / 2013),
                    TransporterSignedDate = new DateTime(03 / 03 / 2012),
                };

            }
            ;

            Mock<ITransportOrderService> mockTransportOrderService=new Mock<ITransportOrderService>();

            mockTransportOrderService.Setup(m => m.GetAllTransportOrder()).Returns(transportOrder);
            this.MockTransportOrderService = mockTransportOrderService.Object;
            _dispatchLocationsController=new DispatchLocationsController(MockTransportOrderService);
        }
Ejemplo n.º 27
0
 public DispatchLocationsController(ITransportOrderService transportOrderService)
 {
     this._transportOrderService = transportOrderService;
 }
Ejemplo n.º 28
0
 public TransportOrderController(ITransportOrderService transportOrderService, ITransReqWithoutTransporterService transReqWithoutTransporterService, IWorkflowStatusService workflowStatusService, IUserAccountService userAccountService)
 {
     _transportOrderService = transportOrderService;
     _workflowStatusService = workflowStatusService;
     _userAccountService = userAccountService;
 }