Example #1
0
        public void testSelectINameIdadeVerson2()
        {
            var newCustomerArray = new CustomerArray();
            var list             = newCustomerArray.InitialData();

            var result = newCustomerArray.GetNameAndOldVerson2(list);
        }
Example #2
0
        public void testSortNameAndId()
        {
            var customer = new CustomerArray();

            var listCustomer = customer.InitialData();

            var result = customer.sortGetNameAndId(listCustomer);
        }
Example #3
0
        public void TestSelectManyPessoasDevendoPaieFilhoSomenteNome()
        {
            var customer = new CustomerArray();

            var listCustomer = customer.InitialData();

            var result = customer.peopleShouldSelectMany2(listCustomer);
        }
Example #4
0
        public void testJoin()
        {
            var custumer = new CustomerArray();
            var typeId   = new CustomerTypeIdArray();

            var listCustumer = custumer.InitialData();
            var listTypeId   = typeId.InitialDataTypeId();

            var result = custumer.joinListByCustomerAndTypeId(listCustumer, listTypeId);
        }
Example #5
0
        public void QueryById()
        {
            CustomerArray newCustomerArray = new CustomerArray();
            var           test             = newCustomerArray.InitialData();

            var result = newCustomerArray.findById(test, 2);

            var resultNull = newCustomerArray.findById(test, 50);

            Assert.AreEqual(2, result.id);
            Assert.AreEqual("Davi", result.Nome);

            Assert.IsNull(resultNull);
        }
Example #6
0
        public void TestSort()
        {
            var customer = new CustomerArray();

            var test = customer.InitialData();

            var resultName = customer.sortByListByName(test);

            var resultTypeId = customer.sortByListByTypeId(test);

            Assert.AreEqual(3, resultName.First().id);

            Assert.AreEqual(null, resultTypeId.Last().TypeId);
            Assert.AreEqual(1, resultTypeId.First().TypeId);
        }