public PetProvider(IPetDataAccess petDataAccess, IPetMapper petMapper, IPetAlertDataAccess petAlertDataAccess) { if (petDataAccess == null) { throw new ArgumentNullException(nameof(petDataAccess)); } if (petMapper == null) { throw new ArgumentNullException(nameof(petMapper)); } if (petAlertDataAccess == null) { throw new ArgumentNullException(nameof(petAlertDataAccess)); } _petDataAccess = petDataAccess; _petMapper = petMapper; _petAlertDataAccess = petAlertDataAccess; }