public void Setup()
        {
            employee = new TestEmployee();
            employeeRepository = new TestEmployeeRepository(employee);
            paymentDispatcher = new TestPaymentDispatcher();
            paymentDispatcherFactory = new TestPaymentDispatcherFactory(paymentDispatcher);

            payer = new TestPayer(employeeRepository, paymentDispatcherFactory);
        }
示例#2
0
        public void Setup()
        {
            employee                 = new TestEmployee();
            employeeRepository       = new TestEmployeeRepository(employee);
            paymentDispatcher        = new TestPaymentDispatcher();
            paymentDispatcherFactory = new TestPaymentDispatcherFactory(paymentDispatcher);

            payer = new TestPayer(employeeRepository, paymentDispatcherFactory);
        }
示例#3
0
        public void ThereIsAnEmployee()
        {
            Employee emloyee = new TestEmployee();

            Assert.IsNotNull(emloyee);
        }
 public TestEmployeeRepository(TestEmployee employee)
 {
     this.employee = employee;
 }
 public void ThereIsAnEmployee()
 {
     Employee emloyee = new TestEmployee();
     Assert.IsNotNull(emloyee);
 }
 public TestEmployeeRepository(TestEmployee employee)
 {
     this.employee = employee;
 }