public List <IDataIngredient> Get(IEnumerable <int> ids)
        {
            if (ids == null)
            {
                throw new ArgumentNullException("ids");                 //nameof(ids)
            }
            if (!ids.Any())
            {
                throw new ArgumentException("Empty list of ids", "ids");
            }

            var json           = client.ReadFromFile(Constants.TABLE_INGREDIENT);
            var allIngredients = JsonConvert.DeserializeObject <List <DataIngredient> >(json);
            var result         = allIngredients.Where(m => ids.Contains(m.Id));

            return(result.Cast <IDataIngredient>().ToList());
        }
        public void ReadFromFile_ThrowsArgumentNullException()
        {
            Action action = () => client.ReadFromFile(null);

            action();
        }