public void AddLinkMonsterCardElements_AllDataValid_ReturnsMonsterCardWithNotNullLinkMonster( int passCode, string name, string description, string type, string race, string imageUrl, string smallImageUrl, string attack, string defence, int levelOrRank, string attribute, int linkValue, bool topLeftLinkMarker, bool topLinkMarker, bool topRightLinkMarker, bool middleLeftLinkMarker, bool middleRightLinkMarker, bool bottomLeftLinkMarker, bool bottomLinkMarker, bool bottomRightLinkMarker) { _cardBuilder.AddBasicCardElements(passCode, name, description, type, race, imageUrl, smallImageUrl, _archetype); _cardBuilder.AddMonsterCardElements( attack, defence, levelOrRank, attribute); _cardBuilder.AddLinkMonsterCardElements( linkValue, topLeftLinkMarker, topLinkMarker, topRightLinkMarker, middleLeftLinkMarker, middleRightLinkMarker, bottomLeftLinkMarker, bottomLinkMarker, bottomRightLinkMarker); Assert.NotNull(_cardBuilder.Build().MonsterCard.LinkMonsterCard); }
private void _addLinkElementsToTheCard(JObject item) { var linkval = item.GetValue("linkval").ToString(); int linkvalCount = 0; if (linkval == "") { linkvalCount = item.GetValue("linkmarkers").ToString().Split(',').Count() + 1; } else { linkvalCount = int.Parse(linkval); } _cardBuilder.AddLinkMonsterCardElements( linkvalCount, _isLinkMarker("Top-Left", item), _isLinkMarker("Top", item), _isLinkMarker("Top-Right", item), _isLinkMarker("Left", item), _isLinkMarker("Right", item), _isLinkMarker("Bottom-Left", item), _isLinkMarker("Bottom", item), _isLinkMarker("Bottom-Right", item) ); }