public void TestEmployee() { var builder = new EmployeeBuilder(); var employee = builder .WithName("Samuel") .HasAge(35) .HasGrossSalaryOf(1000) .Build(); Assert.AreEqual(850, employee.CalculateNetSalary()); }
public void TestEmployee() { var builder = new EmployeeBuilder(); var employee = builder .WithName("Samuel") .HasAge(35) .HasGrossSalaryOf(1000) .Build(); Assert.AreEqual(850, employee.CalculateNetSalary()); }