Skip to content

Instantly share code, notes, and snippets.

@icarocamelo
icarocamelo / Agile Facilities Techniques
Last active July 4, 2017 08:00
Agile Facilities Techniques
Activities
Basic Activities
Simple activities which are good for less-experienced groups.
Ping pong
Navigator-driver
Missing Tool Activities
@icarocamelo
icarocamelo / gist:2659726
Created May 11, 2012 13:42
SQL Lambda Expression
1) Using SQL-like Expression
var iNames = from i in employees
select i.name;
2) Using Lambda Expression
var iNames = employees.Select<Employee, string>(r => r.name);
@icarocamelo
icarocamelo / gist:1442462
Created December 7, 2011 11:22
UnitTest with Mocks
[SetUp]
public static void Setup()
{
MockRepository = new MockRepository();
Repositorio = MockRepository.DynamicMock<ILanceRepositorio>();
Servico = new LanceServico(Repositorio);
}
[TestCase]
public static void Teste_Retornar_Todos()
@icarocamelo
icarocamelo / Factorial Class
Created September 24, 2011 00:50
Factorial: OO x OO (FP inspired)
public class Factorial {
public static long declarativeFactorial(int n){
assert n > 0 : "Argument must be greaten than 0";
if (n == 1)
return 1;
else
return n * declarativeFactorial(n-1);
}