Beispiel #1
0
        public void TestMethod2()
        {
            //assumption: configuration file is stored in local drive c:
            GetEntity a    = new GetEntity("C:\\configuration.json", "U");
            var       list = a.EntityList(a.getData());

            Assert.IsNotNull(list, "No data found.");
        }
Beispiel #2
0
        static void Main(string[] args)
        {
            GetEntity entity = new GetEntity("C:\\configuration.json", "U");
            var       list   = entity.EntityList(entity.getData());

            if (list != null)
            {
                foreach (var x in list)
                {
                    Console.WriteLine(x.Id.ToString() + ", " + x.Created + ", " + x.Type + ", " + x.Content);
                }
            }
            Console.WriteLine("Press any key to exit.");
            Console.ReadKey();
        }