Ejemplo n.º 1
0
        public async Task TestGetClientAsync()
        {
            var clients = await context.OrderClients.ToListAsync();

            Assert.IsTrue(clients.Count() > 0);
            foreach (var client in clients)
            {
                OrderClientHelper.ShowClient(client);
            }
        }
Ejemplo n.º 2
0
        public void TestGetClients()
        {
            var clients = from c in context.OrderClients
                          select c;

            Assert.IsTrue(clients.Count() > 0);
            foreach (var client in clients)
            {
                OrderClientHelper.ShowClient(client);
            }
        }