public void TestInitialize() { this.uiMapper = new CardMapperForUI(); twoOfClubs = new CardBusinessLogic { Suit = VideoPokerGameApp.Models.Enums.CardSuit.Clubs, Rank = 1 }; tenOfClubs = new CardBusinessLogic { Suit = VideoPokerGameApp.Models.Enums.CardSuit.Clubs, Rank = 9 }; jackOfDiamonds = new CardBusinessLogic { Suit = VideoPokerGameApp.Models.Enums.CardSuit.Diamonds, Rank = 10 }; fiveOfDiamonds = new CardBusinessLogic { Suit = VideoPokerGameApp.Models.Enums.CardSuit.Diamonds, Rank = 4 }; kingOfHearts = new CardBusinessLogic { Suit = VideoPokerGameApp.Models.Enums.CardSuit.Hearts, Rank = 12 }; aceOfHearts = new CardBusinessLogic { Suit = VideoPokerGameApp.Models.Enums.CardSuit.Hearts, Rank = 13 }; eightOfSpades = new CardBusinessLogic { Suit = VideoPokerGameApp.Models.Enums.CardSuit.Spades, Rank = 7 }; sevenOfSpades = new CardBusinessLogic { Suit = VideoPokerGameApp.Models.Enums.CardSuit.Spades, Rank = 6 }; }
public string GetCardForUI(CardBusinessLogic card) { return($"[{(CardRankName)card.Rank} of {card.Suit}]"); }