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(); }
public void Quack() { _goose.Honk(); NotifySubscribers(); }
public string Quack() { return(goose.Honk()); }
public string Quack() => _goose.Honk();
public override void Quack() { _goose.Honk(); NotifyObservers(); }