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; }
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")); }
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; }
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; }
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; }
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; }
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)); }
public GetConsignmentHandler(IConsignmentRepository consignmentRepository, IMapper mapper) { _consignmentRepository = consignmentRepository; _mapper = mapper; }
public ConsignmentService(IConsignmentRepository consignmentRepository, IAssemblyMmsService assemblyMmsService) { _consignmentRepository = consignmentRepository; _assemblyMmsService = assemblyMmsService; }
public static ConsignmentService Create(IConsignmentRepository consignmentRepository, ISupplierRepository supplierRepository) { return(Create( consignmentRepository, supplierRepository, TestUserContext.Create("*****@*****.**", "Test User", "Operations Manager", UserRole.Manager | UserRole.Member))); }