コード例 #1
0
        private static void Clear(FireDataSource source, string key)
        {
            IEnumerable <Dictionary <string, object> > docs = source.GetAll();

            foreach (var pairs in docs)
            {
                source.Delete(pairs[key]);
            }
        }
コード例 #2
0
        public void GetAll()
        {
            int count = 0;

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