Exemple #1
0
        public static void Use()
        {
            var employee = new EmployeeBuilder()
                           .Called("Gani")
                           .WorksAs("Developer")
                           .Build();

            Console.WriteLine(employee);
        }
Exemple #2
0
 public static EmployeeBuilder WorksAs(this EmployeeBuilder builder, string position) =>
 builder.Do(p => p.Position = position);