public PlayerMyselfResponse(StatusEnum gameStatus, Player player) { if (player == null) { return; } Name = player.Name; HandCards = player.InHandCards.OrderBy(card => ShitheadService.GetNumericValue(ShitheadService.GetCardNumber(card))).ToList(); DownCount = player.DownCards.Count; OpenCards = player.OpenCards; Status = player.Status; LastDownCard = player.LastDownCard; if (gameStatus == StatusEnum.OUT) { DownCards = player.DownCards; } }
public ShitheadServiceTests() { _sut = new ShitheadService(); }