예제 #1
0
 public void ShouldGetManagerPaymentWithBonus()
 {
     var salesman = new Employee(3000, 0, 200, new Manager());
     Assert.AreEqual(3000 + 200, salesman.Payment());
 }
예제 #2
0
 public void ShouldGetSalesmanPaymentWithCommission()
 {
     var salesman = new Employee(3000, 100, 0, new Salesman());
     Assert.AreEqual(3000 + 100, salesman.Payment());
 }
예제 #3
0
 public void ShouldGetEngineerPayment()
 {
     var engineer = new Employee(3000, 0, 0, new Engineer());
     Assert.AreEqual(3000, engineer.Payment());
 }