public void TestMethod1()
        {
            ITableList<Usuario> table = new TableList<Usuario>();

            table.AddToList(new Usuario() { Id = 1, Login = "******", Nome = "test"});
            table.AddToList(new Usuario() { Id = 2, Login = "******", Nome = "tebg" });

            table.AddPropertyToShow(x => x.Nome);
        }
        public TestViewModel()
        {
            Table = new TableList<Usuario>();

            Table.AddToList(new Usuario() { Id = 1, Login = "******", Nome = "Fulano", Perfil = new Perfil() { Tipo = "test" } });
            Table.AddToList(new Usuario() { Id = 2, Login = "******", Nome = "Tal" });

            Table.AddPropertyToShow(x => x.Login);
            Table.AddPropertyToShow(x => x.Nome);
        }
        public void TestMethod1()
        {
            ITableList <Usuario> table = new TableList <Usuario>();

            table.AddToList(new Usuario()
            {
                Id = 1, Login = "******", Nome = "test"
            });
            table.AddToList(new Usuario()
            {
                Id = 2, Login = "******", Nome = "tebg"
            });

            table.AddPropertyToShow(x => x.Nome);
        }
Exemple #4
0
        public TestViewModel()
        {
            Table = new TableList <Usuario>();

            Table.AddToList(new Usuario()
            {
                Id = 1, Login = "******", Nome = "Fulano", Perfil = new Perfil()
                {
                    Tipo = "test"
                }
            });
            Table.AddToList(new Usuario()
            {
                Id = 2, Login = "******", Nome = "Tal"
            });



            Table.AddPropertyToShow(x => x.Login);
            Table.AddPropertyToShow(x => x.Nome);
        }