diff options
author | Teravus Ovares (Dan Olivares) | 2009-08-14 17:53:21 -0400 |
---|---|---|
committer | Teravus Ovares (Dan Olivares) | 2009-08-14 17:53:21 -0400 |
commit | 8727e773d424da73d93b327e86b3d9dd1285d207 (patch) | |
tree | e667da07be5e92d06c38eaa098efebce3a3aa4bc /OpenSim/Tests/Common | |
parent | * Kunnis' third patch in mantis: http://opensimulator.org/mantis/view.php?id=... (diff) | |
parent | * Re-enable TestLoadIarV0_1ExistingUsers() (diff) | |
download | opensim-SC-8727e773d424da73d93b327e86b3d9dd1285d207.zip opensim-SC-8727e773d424da73d93b327e86b3d9dd1285d207.tar.gz opensim-SC-8727e773d424da73d93b327e86b3d9dd1285d207.tar.bz2 opensim-SC-8727e773d424da73d93b327e86b3d9dd1285d207.tar.xz |
Merge branch 'master' of ssh://MyConnection/var/git/opensim
Diffstat (limited to 'OpenSim/Tests/Common')
-rw-r--r-- | OpenSim/Tests/Common/Mock/TestAssetService.cs | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/OpenSim/Tests/Common/Mock/TestAssetService.cs b/OpenSim/Tests/Common/Mock/TestAssetService.cs index 5f1184b..81f123a 100644 --- a/OpenSim/Tests/Common/Mock/TestAssetService.cs +++ b/OpenSim/Tests/Common/Mock/TestAssetService.cs | |||
@@ -45,7 +45,13 @@ namespace OpenSim.Tests.Common.Mock | |||
45 | 45 | ||
46 | public AssetBase Get(string id) | 46 | public AssetBase Get(string id) |
47 | { | 47 | { |
48 | return Assets[ id ]; | 48 | AssetBase asset; |
49 | if (Assets.ContainsKey(id)) | ||
50 | asset = Assets[id]; | ||
51 | else | ||
52 | asset = null; | ||
53 | |||
54 | return asset; | ||
49 | } | 55 | } |
50 | 56 | ||
51 | public AssetMetadata GetMetadata(string id) | 57 | public AssetMetadata GetMetadata(string id) |
@@ -59,8 +65,10 @@ namespace OpenSim.Tests.Common.Mock | |||
59 | } | 65 | } |
60 | 66 | ||
61 | public bool Get(string id, object sender, AssetRetrieved handler) | 67 | public bool Get(string id, object sender, AssetRetrieved handler) |
62 | { | 68 | { |
63 | throw new NotImplementedException(); | 69 | handler(id, sender, Get(id)); |
70 | |||
71 | return true; | ||
64 | } | 72 | } |
65 | 73 | ||
66 | public string Store(AssetBase asset) | 74 | public string Store(AssetBase asset) |