Acceptance criteria
- The specified behavior or explanation is demonstrated using the detailed tasks below.
8.1 Adapter Pattern Lab
This assignment is based off Head First Designs p. 235-270
Work through the stories in order. Use the acceptance criteria to check each feature, and complete the nested tasks using the specified names, values, and scenarios.
Some animal enthusiast organization has asked that you incorporate their Turkey library and use them as ducks.
You will need to add a using for TurkeyService.

Line 11: : Testing the turkey. . .
Line 2turkey. . .
Line 2: : I'm flying a short distance.
Line 3'm flying a short distance.
Line 3: : Gobble gobble
Line 4Line 4:
:
Line 55: : Testing the duck. . .
Line 6duck. . .
Line 6: : I'm flying
Line 7'm flying
Line 7: : Quackoverride; Quack() override.This isn't possible because TestDuck only takes IDuck types.
Class: Duck
Methods
+ Fly()
+ Quack()
Class: TurkeyAdapter
Inherits from Duck
Fields
- turkey : : Turkey
Methods
+ TurkeyAdapter(ITurkey turkey)
+ Fly<override>
+ Quack()<override>
Interface ITurkey
Methods
Fly()
Gobble()Methods
+ TurkeyAdapter(ITurkey turkey)
+ Fly<override>
+ Quack()<override>
Interface ITurkey
Methods
Fly()
Gobble()
Line 11: : Testing the turkey. . .
Line 2turkey. . .
Line 2: : I'm flying a short distance.
Line 3'm flying a short distance.
Line 3: : I'm flying a short distance.
Line 4'm flying a short distance.
Line 4: : I'm flying a short distance.
Line 5'm flying a short distance.
Line 5: : I'm flying a short distance.
Line 6'm flying a short distance.
Line 6: : I'm flying a short distance.
Line 7'm flying a short distance.
Line 7: : Gobble gobble
Line 8Line 8:
:
Line 99: : Testing the duck. . .
Line 10duck. . .
Line 10: : I'm flying
Line 11'm flying
Line 11: : QuackReturn to each story and verify its acceptance criteria. Preserve the submission format and destination stated in the activity; a reading, setup guide, lab, video demonstration, and oral final may require different evidence.
Run the application. The Console should print out the behavior of the mallard duck. Import the TurkeyService. Build an adapter.