コード例 #1
0
ファイル: MockedFriend.cs プロジェクト: JimmieM/peepeepoopoo
        /// <summary>
        /// Player1 will be the Primary Friend in Friendship
        /// </summary>
        /// <param name="player1"></param>
        /// <param name="player2"></param>
        public static Friendship CreateFriendship(Player player1, Player player2)
        {
            var id            = GenerateId();
            var newFriendship = new Friendship(id, player1);

            newFriendship.AddRelation(player1);
            newFriendship.AddRelation(player2);

            return(newFriendship);
        }