public NomenclatureStockFilterViewModel(IWarehouseRepository warehouseRepository) { if (warehouseRepository == null) { throw new ArgumentNullException(nameof(warehouseRepository)); } AvailableWarehouses = warehouseRepository.GetActiveWarehouse(UoW); }