public void Test1()
        {
            Goose goose = new Goose();
            GooseToIDuckAdapter adapter = new GooseToIDuckAdapter(goose);

            Assert.AreEqual(adapter.Quack(), goose.Honk());
        }
 public void Quack()
 {
     goose.Honk();
     NotifyObservers();
 }
 public void Quack()
 {
     _goose.Honk();
 }
Exemple #4
0
 public void Quack()
 {
     _goose.Honk();
     NotifySubscribers();
 }
Exemple #5
0
 public string Quack()
 {
     return(goose.Honk());
 }
Exemple #6
0
 public string Quack() => _goose.Honk();
Exemple #7
0
 public override void Quack()
 {
     _goose.Honk();
     NotifyObservers();
 }