예제 #1
0
        static void Main(string[] args)
        {
            var eb = new EmployeeBuilder();

            var employee = eb.Called("Ali").WorksAsA("Engineer");

            Console.WriteLine(employee);
            Console.ReadLine();
        }
예제 #2
0
 public static EmployeeBuilder WorksAsA(this EmployeeBuilder employeeBuilder, string position)
 {
     employeeBuilder.Actions.Add(e => { e.Position = position; });
     return(employeeBuilder);
 }