Ejemplo n.º 1
0
        public void CreateClient()
        {
            var firstName = "Magda";

            RestSarpHandler.CreateClient(firstName, "Migas", DateTime.Now, 93, 200);

            var client = RestSarpHandler.GetClient(200);

            Assert.AreEqual(firstName, client.FirstName);
        }
Ejemplo n.º 2
0
        private void displayClients()
        {
            RestSharpHandler handler    = new RestSharpHandler();
            Client           tempClient = new Client();

            for (int i = 32; i < 60; i++)
            {
                tempClient = handler.GetClient(i);

                if (tempClient != null)
                {
                    items.Add(tempClient);
                }
            }
            clientsList.ItemsSource = items;

            CollectionView view = (CollectionView)CollectionViewSource.GetDefaultView(clientsList.ItemsSource);

            view.SortDescriptions.Add(new System.ComponentModel.SortDescription("SecondName", ListSortDirection.Ascending));
        }