Skip to content

Instantly share code, notes, and snippets.

View danielsilva's full-sized avatar

Daniel Silva danielsilva

View GitHub Profile
using Domain.Employees;
using Domain.Employees.BonusExtensions;
class CanGrantBonus
{
public void Foo()
{
var employee = new Employee(
name: "John Doe",
salary: 1500
@danielsilva
danielsilva / SupportTimer.java
Created December 8, 2011 16:48 — forked from juanplopes/SupportTimer.java
Support Timer class for unit tests
import java.lang.reflect.Field;
import java.util.PriorityQueue;
import java.util.Queue;
import java.util.Timer;
import java.util.TimerTask;
import static junit.framework.Assert.*;
public class SupportTimer extends Timer {
private static class SupportTask implements Runnable, Comparable<SupportTask> {
[TestFixture]
public class Evento_Novo_Criado_Corretamente
{
Evento evento;
DateTime dataAtual, dataInicioEvento, dataFimEvento;
[TestFixtureSetUp]
public void Setup()
{
string nome = "Teste Nome";