Skip to content

Instantly share code, notes, and snippets.

[TestFixture]
public class IdVerificationTests
{
[Test,TestCaseSource(typeof(IdVerificationTestFactory), nameof(IdVerificationTestFactory.ItShouldVerifyTheseCustomers))]
public void Should_verify_customer_identity(Customer customer, Country country,
bool responseCode)
{
given_an_idverification_request(customer, country);
when_idverification_is_requested();
then_it_should_have_verified_customer(responseCode);
[Test, TestCaseSource(typeof(OneNineTwoTestFactory), nameof(OneNineTwoTestFactory.CustomersThatCanBeVerified))]
public void given_an_idverification_request_that_should_return_positive(OneNineTwoRequest oneNineTwoRequest)
{
given_a_one_nine_two_request(oneNineTwoRequest);
when_an_id_verification_via_oneNineTwo_is_made();
then_it_should_successfully_verify_id();
}
#define CONTRACTS_FULL
using System;
using System.Collections.Generic;
using System.Diagnostics.Contracts;
using NUnit.Framework;
namespace EnergyQuoteService
{
class Program
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
using Vital.PrevidenciaFechada.DTO.Messages;
namespace FileManagementPerformancetest
{
/// <summary>
/// Valida um número de cpf
/// </summary>
/// <param name="proposta">Dados da proposta</param>
/// <returns>PropostaVO</returns>
public override PropostaVO Validar(PropostaVO proposta)
{
if (!proposta.CpfDoParticipante.CpfValido())
proposta = proposta.InformarCritica("Cpf está inválido", "Cpf");
@kaldas
kaldas / p2_src.cpp
Created February 27, 2012 17:54
p2_src.cpp
/*********************************************
P2, Instituto Infnet, Prof. Cleuton Sampaio
Alunos: Rodrigo Caldas de Moura Duarte
Thyago de Luca Silva Costa (d0j0 guy)
*********************************************/
/* PROFESSOR, ESTE É UM CODE DE QUEM FAZ DOJO!
ENTRADA:
package com.swissbank.controller;
public class ContaCorrente {
private int numero;
private int saldo;
public void depositar() {
}
public class Atom {
private final int atomValue;
public Atom() {
this.atomValue = (int) (1+Math.random()*1000);
}
public Atom(int playerInput) {
@kaldas
kaldas / gist:1419458
Created December 1, 2011 20:08
form.html
<form id="jogoMemo" name="jogoMemo" method="post" action="">
<table width="396" border="0" cellpadding="3" cellspacing="3">
<tr>
<td width="196">Qual é o <b>[NÚMERO]</b> valor?</td>
<td width="186"><input type="text" name="textfield" id="textfield" />
</td>
</tr>
<tr>
<td><input type="hidden" name="segredo" id="segredo" /></td>
<td><input type="submit" name="enviar" id="enviar" value="Enviar!" /></td>
/* GEC2010N-05 / JAVA III
* Prof. Tomás de Aquino Tinoco Botelho
*/
package trabjava31;
/**
* @author EQUIPE ROCKET w/ much help of Deitel and internet!
*/