-
Notifications
You must be signed in to change notification settings - Fork 18
Open
Description
Hi,
In chapter 18, page 587, In Dependency Injection section, In my opinion the following code is incomplete.
What is PlayHand? Is it a method?
public interface ICardGameClient
{
void Player(string Name);
}
public class PlaySomeCards
{
private readonly ICardGameClient _cardGameClient;
public PlaySomeCards(ICardGameClient cardGameClient)
{
_cardGameClient = cardGameClient;
}
public PlayHand // Is it true? Shouldn't it be --> public void PlayHand() ?
{
_cardGameClient.Player("Benjamin");
}
}
Metadata
Metadata
Assignees
Labels
No labels