aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Tests/Common/Mock
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Tests/Common/Mock')
-rw-r--r--OpenSim/Tests/Common/Mock/TestClient.cs11
1 files changed, 9 insertions, 2 deletions
diff --git a/OpenSim/Tests/Common/Mock/TestClient.cs b/OpenSim/Tests/Common/Mock/TestClient.cs
index 60a23f5..5fe1985 100644
--- a/OpenSim/Tests/Common/Mock/TestClient.cs
+++ b/OpenSim/Tests/Common/Mock/TestClient.cs
@@ -56,6 +56,10 @@ namespace OpenSim.Tests.Common.Mock
56 56
57 private IScene m_scene; 57 private IScene m_scene;
58 58
59 // Properties so that we can get at received data for test purposes
60 public List<UUID> OfflineNotificationsReceived { get; private set; }
61 public List<UUID> OnlineNotificationsReceived { get; private set; }
62
59// disable warning: public events, part of the public API 63// disable warning: public events, part of the public API
60#pragma warning disable 67 64#pragma warning disable 67
61 65
@@ -440,6 +444,9 @@ namespace OpenSim.Tests.Common.Mock
440 m_circuitCode = agentData.circuitcode; 444 m_circuitCode = agentData.circuitcode;
441 m_scene = scene; 445 m_scene = scene;
442 CapsSeedUrl = agentData.CapsPath; 446 CapsSeedUrl = agentData.CapsPath;
447
448 OfflineNotificationsReceived = new List<UUID>();
449 OnlineNotificationsReceived = new List<UUID>();
443 } 450 }
444 451
445 /// <summary> 452 /// <summary>
@@ -827,12 +834,12 @@ namespace OpenSim.Tests.Common.Mock
827 834
828 public void SendAgentOffline(UUID[] agentIDs) 835 public void SendAgentOffline(UUID[] agentIDs)
829 { 836 {
830 837 OfflineNotificationsReceived.AddRange(agentIDs);
831 } 838 }
832 839
833 public void SendAgentOnline(UUID[] agentIDs) 840 public void SendAgentOnline(UUID[] agentIDs)
834 { 841 {
835 842 OnlineNotificationsReceived.AddRange(agentIDs);
836 } 843 }
837 844
838 public void SendSitResponse(UUID TargetID, Vector3 OffsetPos, Quaternion SitOrientation, bool autopilot, 845 public void SendSitResponse(UUID TargetID, Vector3 OffsetPos, Quaternion SitOrientation, bool autopilot,