Example #1
0
 public void MakePayment(double amount, BankingAccountNumber recipient)
 {
     if (new Random().Next(100) <= 50)
     {
         throw new PaymentServiceException("Error while accessing the ACME payment service.");
     }
 }
Example #2
0
        public void ConfigurerEntrepriseAvecAlice()
        {
            paymentService = Mock.Of <IPaymentService>();

            aliceAccount = new BankingAccountNumber();
            alice        = new Employee(aliceAccount, ALICE_SALAIRE_ANNUEL);
        }
Example #3
0
 public Employee(BankingAccountNumber bankingAccount, double annualSalary)
 {
     this.bankingAccount = bankingAccount;
     this.annualSalary   = annualSalary;
 }