示例#1
0
        public void TestEmployee()
        {
            var builder = new EmployeeBuilder();

            var employee = builder
                           .WithName("Samuel")
                           .HasAge(35)
                           .HasGrossSalaryOf(1000)
                           .Build();

            Assert.AreEqual(850, employee.CalculateNetSalary());
        }