protected override IEnumerator runTest() { IUnfriendResult unfriendResult = null; bobSession.LocalUser.Unfriend(bobSession.LocalUser.Friends.First(), delegate(IUnfriendResult r) { unfriendResult = r; }); while (unfriendResult == null) { yield return(null); } IntegrationTestEx.FailIf(!unfriendResult.Success, "Unfriend did not succeed"); while (!dataEntityCollection.GetEntityByType <FriendData>().IsNull) { yield return(null); } }
private void onUnfriendSent(IUnfriendResult result, string friendName) { Service.Get <EventDispatcher>().DispatchEvent(new FriendsServiceEvents.UnfriendSent(result.Success, friendName)); }