/// <summary> /// Initializes a new instance of the <see cref="OfficeService"/> class with specified <see cref="IOfficeCatalogueContext"/> and <see cref="IUserContext"/>. /// </summary> /// <param name="context">A <see cref="IOfficeCatalogueContext"/>.</param> public OfficeService(IOfficeCatalogueContext context) { _context = context ?? throw new ArgumentNullException(nameof(context)); }
/// <summary> /// Initializes a new instance of the <see cref="EmployeeService"/> class with specified <see cref="IOfficeCatalogueContext"/> and <see cref="IUserContext"/>. /// </summary> /// <param name="context">A <see cref="IOfficeCatalogueContext"/>.</param> public EmployeeService(IOfficeCatalogueContext context) { _repository = new EmployeeRepository(context) ?? throw new ArgumentNullException(nameof(context)); }
public EmployeeRepository(IOfficeCatalogueContext context) { _context = context ?? throw new ArgumentNullException(nameof(context)); }
/// <summary> /// Initializes a new instance of the <see cref="RequaredInventoryService"/> class with specified <see cref="IRequaredInventoryCatalogueContext"/> and <see cref="IUserContext"/>. /// </summary> /// <param name="context">A <see cref="IRequaredInventoryCatalogueContext"/>.</param> public RequaredInventoryService(IOfficeCatalogueContext context) { _context = context ?? throw new ArgumentNullException(nameof(context)); }