public AddTrackingHandler(ITrackingRepository trackingRepository, IConsignmentRepository consignmentRepository,
                           IMapper mapper)
 {
     _trackingRepository    = trackingRepository;
     _consignmentRepository = consignmentRepository;
     _mapper = mapper;
 }
        public AddConsignmentHandler(IConsignmentRepository consignmentRepository, IMapper mapper)
        {
            consignmentRepository.LoadWith(record => record.TrackingRecords);

            _consignmentRepository = consignmentRepository;
            _mapper = mapper;
        }
示例#3
0
        public ConsignmentsService(IConsignmentRepository consignmentRepository, IPackagesService packagesService, IConsignmentValidator consignmentValidator, IConfigurationProvider configurationProvider)
        {
            _consignmentsRepository = consignmentRepository;
            _packagesService        = packagesService;
            _consignmentValidator   = consignmentValidator;

            _retryCount = int.Parse(configurationProvider.GetConfigurationValue("SaveRetryCount"));
            _retryDelay = int.Parse(configurationProvider.GetConfigurationValue("SaveRetryDelay"));
        }
示例#4
0
 public ConsignmentService(
     IUserContext applicationContext,
     IConsignmentRepository consignmentRepository,
     ISupplierRepository supplierRepository,
     IEntityIdProvider entityIdProvider,
     ConsignmentItemService consignmentItemService,
     IQueueDispatcher <IMessage> dispatcher) : base(applicationContext, dispatcher)
 {
     _consignmentRepository  = consignmentRepository;
     _supplierRepository     = supplierRepository;
     _entityIdProvider       = entityIdProvider;
     _consignmentItemService = consignmentItemService;
 }
示例#5
0
 public ConsignmentItemService(
     IUserContext applicationContext,
     IConsignmentRepository consignmentRepository,
     IConsignmentItemRepository consignmentItemRepository,
     IJobItemRepository jobItemRepository,
     IListItemRepository listItemRepository,
     ISupplierRepository supplierRepository,
     IQueueDispatcher <IMessage> dispatcher) : base(applicationContext, dispatcher)
 {
     _consignmentRepository     = consignmentRepository;
     _consignmentItemRepository = consignmentItemRepository;
     _jobItemRepository         = jobItemRepository;
     _listItemRepository        = listItemRepository;
     _supplierRepository        = supplierRepository;
 }
示例#6
0
 public AssemblyMmsService(
     IAssemblyMmsRepository assemblyMmsRepository,
     IAccelerometerRepository accelerometerRepository,
     IGyroscopeRepository gyroscopeRepository,
     IConfiguringMmsService configuringMmsService,
     IMakeProductService makeProductService,
     IAuthorRepository authorRepository,
     IConsignmentRepository consignmentRepository)
 {
     _assemblyMmsRepository   = assemblyMmsRepository;
     _accelerometerRepository = accelerometerRepository;
     _gyroscopeRepository     = gyroscopeRepository;
     _configuringMmsService   = configuringMmsService;
     _makeProductService      = makeProductService;
     _authorRepository        = authorRepository;
     _consignmentRepository   = consignmentRepository;
 }
示例#7
0
 public OrderService(
     IUserContext applicationContext,
     IOrderRepository orderRepository,
     IConsignmentRepository consignmentRepository,
     ISupplierRepository supplierRepository,
     ICurrencyRepository currencyRepository,
     IEntityIdProvider entityIdProvider,
     OrderItemService orderItemService,
     ICompanyDetailsRepository companyDetailsRepository,
     IQueueDispatcher <IMessage> dispatcher) : base(applicationContext, dispatcher)
 {
     _orderRepository          = orderRepository;
     _supplierRepository       = supplierRepository;
     _entityIdProvider         = entityIdProvider;
     _orderItemService         = orderItemService;
     _companyDetailsRepository = companyDetailsRepository;
     _consignmentRepository    = consignmentRepository;
     _currencyRepository       = currencyRepository;
 }
示例#8
0
        public static ConsignmentService Create(IConsignmentRepository consignmentRepository, ISupplierRepository supplierRepository, IUserContext userContext)
        {
            var dispatcher = MockRepository.GenerateStub <IQueueDispatcher <IMessage> >();

            return(new ConsignmentService(
                       userContext,
                       consignmentRepository,
                       supplierRepository,
                       EntityIdProviderFactory.GetEntityIdProviderFor <Consignment>("CR2000"),
                       new ConsignmentItemService(
                           userContext,
                           MockRepository.GenerateStub <IConsignmentRepository>(),
                           MockRepository.GenerateStub <IConsignmentItemRepository>(),
                           MockRepository.GenerateStub <IJobItemRepository>(),
                           MockRepository.GenerateStub <IListItemRepository>(),
                           MockRepository.GenerateStub <ISupplierRepository>(),
                           dispatcher),
                       dispatcher));
        }
示例#9
0
 public GetConsignmentHandler(IConsignmentRepository consignmentRepository, IMapper mapper)
 {
     _consignmentRepository = consignmentRepository;
     _mapper = mapper;
 }
示例#10
0
 public ConsignmentService(IConsignmentRepository consignmentRepository,
                           IAssemblyMmsService assemblyMmsService)
 {
     _consignmentRepository = consignmentRepository;
     _assemblyMmsService    = assemblyMmsService;
 }
示例#11
0
 public static ConsignmentService Create(IConsignmentRepository consignmentRepository, ISupplierRepository supplierRepository)
 {
     return(Create(
                consignmentRepository, supplierRepository, TestUserContext.Create("*****@*****.**", "Test User", "Operations Manager", UserRole.Manager | UserRole.Member)));
 }