diff options
author | Jeff Ames | 2009-05-17 10:26:00 +0000 |
---|---|---|
committer | Jeff Ames | 2009-05-17 10:26:00 +0000 |
commit | 5cfd84c92427658d88c4b36e1470744babd3d54d (patch) | |
tree | 5a08dd22f5866dd4e0cf0bdbed9353561390fa70 /OpenSim/Tests/Common/Mock/TestAssetService.cs | |
parent | Removing a superfluous message, just to make bamboo run again. (diff) | |
download | opensim-SC_OLD-5cfd84c92427658d88c4b36e1470744babd3d54d.zip opensim-SC_OLD-5cfd84c92427658d88c4b36e1470744babd3d54d.tar.gz opensim-SC_OLD-5cfd84c92427658d88c4b36e1470744babd3d54d.tar.bz2 opensim-SC_OLD-5cfd84c92427658d88c4b36e1470744babd3d54d.tar.xz |
Update svn properties.
Diffstat (limited to 'OpenSim/Tests/Common/Mock/TestAssetService.cs')
-rw-r--r-- | OpenSim/Tests/Common/Mock/TestAssetService.cs | 154 |
1 files changed, 77 insertions, 77 deletions
diff --git a/OpenSim/Tests/Common/Mock/TestAssetService.cs b/OpenSim/Tests/Common/Mock/TestAssetService.cs index 23a1137..91ea921 100644 --- a/OpenSim/Tests/Common/Mock/TestAssetService.cs +++ b/OpenSim/Tests/Common/Mock/TestAssetService.cs | |||
@@ -1,78 +1,78 @@ | |||
1 | /* | 1 | /* |
2 | * Copyright (c) Contributors, http://opensimulator.org/ | 2 | * Copyright (c) Contributors, http://opensimulator.org/ |
3 | * See CONTRIBUTORS.TXT for a full list of copyright holders. | 3 | * See CONTRIBUTORS.TXT for a full list of copyright holders. |
4 | * | 4 | * |
5 | * Redistribution and use in source and binary forms, with or without | 5 | * Redistribution and use in source and binary forms, with or without |
6 | * modification, are permitted provided that the following conditions are met: | 6 | * modification, are permitted provided that the following conditions are met: |
7 | * * Redistributions of source code must retain the above copyright | 7 | * * Redistributions of source code must retain the above copyright |
8 | * notice, this list of conditions and the following disclaimer. | 8 | * notice, this list of conditions and the following disclaimer. |
9 | * * Redistributions in binary form must reproduce the above copyright | 9 | * * Redistributions in binary form must reproduce the above copyright |
10 | * notice, this list of conditions and the following disclaimer in the | 10 | * notice, this list of conditions and the following disclaimer in the |
11 | * documentation and/or other materials provided with the distribution. | 11 | * documentation and/or other materials provided with the distribution. |
12 | * * Neither the name of the OpenSim Project nor the | 12 | * * Neither the name of the OpenSim Project nor the |
13 | * names of its contributors may be used to endorse or promote products | 13 | * names of its contributors may be used to endorse or promote products |
14 | * derived from this software without specific prior written permission. | 14 | * derived from this software without specific prior written permission. |
15 | * | 15 | * |
16 | * THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS'' AND ANY | 16 | * THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS'' AND ANY |
17 | * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED | 17 | * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED |
18 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | 18 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
19 | * DISCLAIMED. IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY | 19 | * DISCLAIMED. IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY |
20 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES | 20 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES |
21 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | 21 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; |
22 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND | 22 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND |
23 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 23 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
24 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS | 24 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS |
25 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 25 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
26 | */ | 26 | */ |
27 | 27 | ||
28 | using System; | 28 | using System; |
29 | using System.Collections.Generic; | 29 | using System.Collections.Generic; |
30 | using OpenMetaverse; | 30 | using OpenMetaverse; |
31 | using OpenSim.Framework; | 31 | using OpenSim.Framework; |
32 | using OpenSim.Data; | 32 | using OpenSim.Data; |
33 | using OpenSim.Services.Interfaces; | 33 | using OpenSim.Services.Interfaces; |
34 | 34 | ||
35 | namespace OpenSim.Tests.Common.Mock | 35 | namespace OpenSim.Tests.Common.Mock |
36 | { | 36 | { |
37 | public class TestAssetService : IAssetService | 37 | public class TestAssetService : IAssetService |
38 | { | 38 | { |
39 | private readonly Dictionary<string, AssetBase> Assets = new Dictionary<string, AssetBase>(); | 39 | private readonly Dictionary<string, AssetBase> Assets = new Dictionary<string, AssetBase>(); |
40 | 40 | ||
41 | public AssetBase Get(string id) | 41 | public AssetBase Get(string id) |
42 | { | 42 | { |
43 | return Assets[ id ]; | 43 | return Assets[ id ]; |
44 | } | 44 | } |
45 | 45 | ||
46 | public AssetMetadata GetMetadata(string id) | 46 | public AssetMetadata GetMetadata(string id) |
47 | { | 47 | { |
48 | throw new System.NotImplementedException(); | 48 | throw new System.NotImplementedException(); |
49 | } | 49 | } |
50 | 50 | ||
51 | public byte[] GetData(string id) | 51 | public byte[] GetData(string id) |
52 | { | 52 | { |
53 | throw new System.NotImplementedException(); | 53 | throw new System.NotImplementedException(); |
54 | } | 54 | } |
55 | 55 | ||
56 | public bool Get(string id, object sender, AssetRetrieved handler) | 56 | public bool Get(string id, object sender, AssetRetrieved handler) |
57 | { | 57 | { |
58 | throw new NotImplementedException(); | 58 | throw new NotImplementedException(); |
59 | } | 59 | } |
60 | 60 | ||
61 | public string Store(AssetBase asset) | 61 | public string Store(AssetBase asset) |
62 | { | 62 | { |
63 | Assets[asset.ID] = asset; | 63 | Assets[asset.ID] = asset; |
64 | 64 | ||
65 | return asset.ID; | 65 | return asset.ID; |
66 | } | 66 | } |
67 | 67 | ||
68 | public bool UpdateContent(string id, byte[] data) | 68 | public bool UpdateContent(string id, byte[] data) |
69 | { | 69 | { |
70 | throw new System.NotImplementedException(); | 70 | throw new System.NotImplementedException(); |
71 | } | 71 | } |
72 | 72 | ||
73 | public bool Delete(string id) | 73 | public bool Delete(string id) |
74 | { | 74 | { |
75 | throw new System.NotImplementedException(); | 75 | throw new System.NotImplementedException(); |
76 | } | 76 | } |
77 | } | 77 | } |
78 | } \ No newline at end of file | 78 | } \ No newline at end of file |