/// <summary> /// Initializes a new instance of the <see cref="CityFinder"/> class. /// </summary> /// <param name="cityListRepository">The city list repository.</param> /// <param name="validator">The validator.</param> /// <param name="cityNameFinder">The string finder.</param> /// <param name="cityNextLetterHelper">The next letter helper.</param> /// <exception cref="System.ArgumentNullException"> /// validator /// or /// cityNameFinder /// or /// cityListRepository. /// </exception> public CityFinder( ICityListRepository cityListRepository, IValidator validator, ICityNameFinder cityNameFinder, ICityNextLetterHelper cityNextLetterHelper) { _validator = validator ?? throw new ArgumentNullException(nameof(validator)); _cityNameFinder = cityNameFinder ?? throw new ArgumentNullException(nameof(cityNameFinder)); _cityNextLetterHelper = cityNextLetterHelper ?? throw new ArgumentNullException(nameof(cityNextLetterHelper)); _cityListRepository = cityListRepository ?? throw new ArgumentNullException(nameof(cityListRepository)); }
public DataManager(ITextFieldsRepository textFieldsRepository, IServiceItemsRepository serviceItemsRepository, ICityListRepository cityListRepository, IUserPhoneRepository userPhoneRepository, IFitCalcRepository fitCalcRepository, IGlassesRepository glassesRepository, IUserOrderRepository userOrderRepository) { TextFields = textFieldsRepository; ServiceItems = serviceItemsRepository; CitiesOfList = cityListRepository; UserPhones = userPhoneRepository; Fittings = fitCalcRepository; Glasses = glassesRepository; UserOrders = userOrderRepository; }