private static void Clear(FireDataSource source, string key)
        {
            IEnumerable <Dictionary <string, object> > docs = source.GetAll();

            foreach (var pairs in docs)
            {
                source.Delete(pairs[key]);
            }
        }
Ejemplo n.º 2
0
        public void GetAll()
        {
            int count = 0;

            foreach (var dic in studentsDb.GetAll())
            {
                output.WriteLine(ToString(dic));
                count++;
            }
            Assert.Equal(9, count);
        }