/// <summary> /// Initializes a new instance of the <see cref="TransactionService"/> class with specified <see cref="IOrderStoreContext"/> and <see cref="IUserContext"/>. /// </summary> /// <param name="context">A <see cref="IProductStoreHiveContext"/>.</param> /// <param name="userContext">A <see cref="IUserContext"/>.</param> public TransactionService(IOrderStoreContext context, IUserContext userContext) { _context = context ?? throw new ArgumentNullException(nameof(context)); _userContext = userContext ?? throw new ArgumentNullException(); }
public OrderRepositoryService(IOrderStoreContext context, IUserContext userContext) { _context = context ?? throw new ArgumentNullException(nameof(context)); _userContext = userContext ?? throw new ArgumentNullException(nameof(userContext)); }