/// <summary> /// Initialize a new instance of the <see cref="ItemController" /> class /// </summary> /// <param name="repository"><c>SqpQueryRepository</c> instance</param> public ItemController(ISapQueryRepository repository) { if (repository == null) { throw new ArgumentNullException(nameof(repository)); } this._repository = repository; }
/// <summary> /// Initialize a new instance of the <see cref="JournalVoucherController" /> class /// </summary> /// <param name="repository"><c>SapQueryRepository</c> instance</param> /// <param name="service"><c>EventStreamService</c> instance</param> public JournalVoucherController(ISapQueryRepository repository, IEventStreamService service) { if (repository == null) { throw new ArgumentNullException(nameof(repository)); } this._repository = repository; if (service == null) { throw new ArgumentNullException(nameof(service)); } this._service = service; }
/// <summary> /// Initialises a new instance of the <see cref="CountryController" /> class. /// </summary> /// <param name="queryRepository"><c>SapQueryRepository</c> instance.</param> /// <param name="service"><c>EventStreamService</c> instance.</param> public CountryController(ISapQueryRepository queryRepository, IEventStreamService service) { if (queryRepository == null) { throw new ArgumentNullException(nameof(queryRepository)); } this._queryRepository = queryRepository; if (service == null) { throw new ArgumentNullException(nameof(service)); } this._service = service; }