public void CalculatesMonthlyRenumeration() { // Arrange IEmployee salariedEmployee = new SalariedEmployee(); IEmployeeVisitor visitor = new CalculateRenumeration(); // Act var result = salariedEmployee.Accept(visitor); // Assert Assert.AreEqual("renumeration", result); }
public void CalculatesHourly() { // Arrange IEmployee salariedEmployee = new SalariedEmployee(); IEmployeeVisitor visitor = new CalculateRate(); // Act var result = salariedEmployee.Accept(visitor); // Assert Assert.AreEqual("rate", result); }