public PairService(IPairRepository pairRepository, IPairFactory pairFactory, ICorrelationContext correlationContext, IUserRepository userRepository) { _pairRepository = pairRepository ?? throw new ArgumentNullException(nameof(pairRepository)); _pairFactory = pairFactory ?? throw new ArgumentNullException(nameof(pairFactory)); _correlationContext = correlationContext ?? throw new ArgumentNullException(nameof(correlationContext)); _userRepository = userRepository ?? throw new ArgumentNullException(nameof(userRepository)); }
public OrderServices(IOrderRepository orderRepository, IProductRepository productRepository, IDiscountRepository discountRepository, IPairRepository <DatabaseModels.OrderItems> orderItemsRepository, IOrderDiscountRepository orderDiscountRepository, ICashierRepository cashierRepository) { _orderRepository = orderRepository; _productRepository = productRepository; _discountRepository = discountRepository; _orderItemsRepository = orderItemsRepository; _orderDiscountRepository = orderDiscountRepository; _cashierRepository = cashierRepository; ticketNumberLock = new object(); }
public ApiController( IOptions <ApiControlerOptions> options, IPairRepository pairRepo, MonthlyReportBuilder monthlyReportBuilder, ILogger log ) { this.RequiredSymbols = options?.Value?.RequiredSymbols ?? throw new ArgumentNullException(nameof(RequiredSymbols)); this.pairRepo = pairRepo ?? throw new ArgumentNullException(nameof(pairRepo)); this.monthlyReportBuilder = monthlyReportBuilder ?? throw new ArgumentNullException(nameof(monthlyReportBuilder)); this.log = log?.ForContext(GetType()); }
public async Task Invoke( IPairRepository pairPersistanceRepo, WebPairRepository pairExternalRepo, CancellationToken cancellationToken ) { System.Diagnostics.Debug.WriteLine("--------------Tick #" + count++); var pairs = await pairExternalRepo.FindCurrentAsync(); var x = pairs.ToArray(); await pairPersistanceRepo.SaveAllAsync(pairs); }
public Application( IEnumerable <int> requestedYears, WebPairRepository remotePairRepository, IPairRepository persistancePairRepository, ILogger log ) { this.requestedYears = requestedYears ?? throw new ArgumentNullException(nameof(requestedYears)); this.remotePairRepository = remotePairRepository ?? throw new ArgumentNullException(nameof(remotePairRepository)); this.persistancePairRepository = persistancePairRepository ?? throw new ArgumentNullException(nameof(persistancePairRepository)); this.log = log?.ForContext(GetType()); }
public MemoryService(ISizeRepository sizeRepository, IPairRepository pairRepository, IUserChatPairRepository userChatPairRepository) { _sizeRepository = sizeRepository; _pairRepository = pairRepository; _userChatPairRepository = userChatPairRepository; }
public FeedbackRequest(IPairRepository pairs, LinkProvider links) { this.pairs = pairs.Include(p => p.Receiver).Include(p => p.Initiator); this.links = links; }
public CrudPairServices(IPairRepository <T> pairRepository) { _pairRepository = pairRepository; }
public FeedbackController(IPairRepository pairs) { this.pairs = pairs; }