Beispiel #1
0
 public void Build(Automobile a)
 {
     foreach (var filter in _filters)
     {
         filter.Execute(a);
     }
 }
Beispiel #2
0
 protected override void ExecuteFilterTask(Automobile a)
 {
     a.Metadata.Append("Molding & welding chassis...");
     //...
 }
Beispiel #3
0
 private static void Success(Automobile a)
 {
     a.Metadata.AppendLine("SUCCESS!");
 }
Beispiel #4
0
 protected abstract void ExecuteFilterTask(Automobile a);
Beispiel #5
0
 public void Execute(Automobile a)
 {
     ExecuteFilterTask(a);
     Success(a);
 }
Beispiel #6
0
 protected override void ExecuteFilterTask(Automobile a)
 {
     a.Metadata.Append("Adding trailer hitch...");
     //...
 }
Beispiel #7
0
 protected override void ExecuteFilterTask(Automobile a)
 {
     a.Metadata.Append("Topping-off fluids...");
     //...
 }
Beispiel #8
0
 protected override void ExecuteFilterTask(Automobile a)
 {
     a.Metadata.Append("Adding steering box components...");
     //...
 }
Beispiel #9
0
 protected override void ExecuteFilterTask(Automobile a)
 {
     a.Metadata.Append("Adding body to frame...");
     //...
 }
Beispiel #10
0
 protected override void ExecuteFilterTask(Automobile a)
 {
     a.Metadata.Append("Adding battery & spark plugs...");
     //...
 }
Beispiel #11
0
 protected override void ExecuteFilterTask(Automobile a)
 {
     a.Metadata.Append("Attaching radiator...");
     //...
 }
Beispiel #12
0
 protected override void ExecuteFilterTask(Automobile a)
 {
     a.Metadata.Append("Mating engine with transmission...");
     //...
 }
Beispiel #13
0
 protected override void ExecuteFilterTask(Automobile a)
 {
     a.Metadata.Append("Adding braking system...");
     //...
 }
Beispiel #14
0
 protected override void ExecuteFilterTask(Automobile a)
 {
     a.Metadata.Append("Adding rear suspension...");
     //...
 }
Beispiel #15
0
 protected override void ExecuteFilterTask(Automobile a)
 {
     a.Metadata.Append("Inspecting quality...");
     //...
 }
Beispiel #16
0
 protected override void ExecuteFilterTask(Automobile a)
 {
     a.Metadata.Append("Adding gas tank...");
     //...
 }
Beispiel #17
0
 protected override void ExecuteFilterTask(Automobile a)
 {
     a.Metadata.Append("Adding drive shafts...");
     //...
 }