| | 1 | | using System.Collections; |
| | 2 | | using UnityEngine; |
| | 3 | |
|
| | 4 | | public static class TestHelpers_Friends |
| | 5 | | { |
| | 6 | | public static IEnumerator FakeAddFriend(FriendsController_Mock controller, FriendsHUDView hudView, string id, Friend |
| | 7 | | { |
| 13 | 8 | | UserProfileModel model = new UserProfileModel() |
| | 9 | | { |
| | 10 | | userId = id, |
| | 11 | | name = id, |
| | 12 | | }; |
| | 13 | |
|
| 13 | 14 | | UserProfileController.i.AddUserProfileToCatalog(model); |
| 13 | 15 | | controller.RaiseUpdateFriendship(id, action); |
| 37 | 16 | | yield return new WaitUntil(() => hudView.friendsList.creationQueue.Count == 0); |
| 13 | 17 | | } |
| | 18 | |
|
| 5 | 19 | | public static FriendEntry GetEntry(FriendsHUDView hudView, string id) { return hudView.friendsList.GetEntry(id) as F |
| | 20 | | } |