public void testSelectINameIdadeVerson2() { var newCustomerArray = new CustomerArray(); var list = newCustomerArray.InitialData(); var result = newCustomerArray.GetNameAndOldVerson2(list); }
public void testSortNameAndId() { var customer = new CustomerArray(); var listCustomer = customer.InitialData(); var result = customer.sortGetNameAndId(listCustomer); }
public void TestSelectManyPessoasDevendoPaieFilhoSomenteNome() { var customer = new CustomerArray(); var listCustomer = customer.InitialData(); var result = customer.peopleShouldSelectMany2(listCustomer); }
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); }
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); }
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); }