-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from Terradue/1.7
Generic Opensearchable with default mime type
- Loading branch information
Showing
7 changed files
with
130 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,3 +5,5 @@ Terradue.OpenSearch.userprefs | |
/Terradue.OpenSearch/obj | ||
/packages/ | ||
/packages | ||
|
||
/Terradue.OpenSearch.Test/bin/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
using System; | ||
using NUnit.Framework; | ||
using Terradue.OpenSearch.Engine; | ||
using Mono.Addins; | ||
using Terradue.OpenSearch.Result; | ||
using Terradue.OpenSearch.Engine; | ||
|
||
namespace Terradue.OpenSearch.RdfEO.Test { | ||
|
||
[TestFixture()] | ||
public class GenericTest { | ||
|
||
[Test()] | ||
public void GenericOpenSearchableTest() { | ||
|
||
AddinManager.Initialize(); | ||
AddinManager.Registry.Update(null); | ||
|
||
OpenSearchEngine ose = new OpenSearchEngine(); | ||
|
||
ose.LoadPlugins(); | ||
OpenSearchUrl url = new OpenSearchUrl("http://catalogue.terradue.int/catalogue/search/MER_FRS_1P/rdf?startIndex=0&q=MER_FRS_1P&start=1992-01-01&stop=2014-10-24&bbox=-72,47,-57,58"); | ||
IOpenSearchable entity = new GenericOpenSearchable(url, ose); | ||
|
||
var osr = ose.Query(entity, new System.Collections.Specialized.NameValueCollection(), "rdf"); | ||
|
||
Assert.That(osr.Result.Links.Count > 0); | ||
|
||
} | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<PropertyGroup> | ||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> | ||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> | ||
<ProductVersion>8.0.30703</ProductVersion> | ||
<SchemaVersion>2.0</SchemaVersion> | ||
<ProjectGuid>{10E8EBF3-FD2C-4CFF-843C-6781BA1DE573}</ProjectGuid> | ||
<OutputType>Library</OutputType> | ||
<RootNamespace>Terradue.OpenSearch.Test</RootNamespace> | ||
<AssemblyName>Terradue.OpenSearch.Test</AssemblyName> | ||
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion> | ||
</PropertyGroup> | ||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> | ||
<DebugSymbols>true</DebugSymbols> | ||
<DebugType>full</DebugType> | ||
<Optimize>false</Optimize> | ||
<OutputPath>bin</OutputPath> | ||
<DefineConstants>DEBUG;</DefineConstants> | ||
<ErrorReport>prompt</ErrorReport> | ||
<WarningLevel>4</WarningLevel> | ||
<ConsolePause>false</ConsolePause> | ||
</PropertyGroup> | ||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> | ||
<DebugType>full</DebugType> | ||
<Optimize>true</Optimize> | ||
<OutputPath>bin</OutputPath> | ||
<ErrorReport>prompt</ErrorReport> | ||
<WarningLevel>4</WarningLevel> | ||
<ConsolePause>false</ConsolePause> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<Reference Include="System" /> | ||
<Reference Include="nunit.framework"> | ||
<HintPath>..\packages\NUnit.2.6.3\lib\nunit.framework.dll</HintPath> | ||
</Reference> | ||
<Reference Include="Mono.Addins"> | ||
<HintPath>..\packages\Mono.Addins.1.1\lib\Mono.Addins.dll</HintPath> | ||
</Reference> | ||
<Reference Include="Terradue.ServiceModel.Syndication"> | ||
<HintPath>..\packages\Terradue.ServiceModel.Syndication.1.0.0.0\lib\net40\Terradue.ServiceModel.Syndication.dll</HintPath> | ||
</Reference> | ||
<Reference Include="ServiceStack.Text"> | ||
<HintPath>..\packages\ServiceStack.Text.3.9.71\lib\net35\ServiceStack.Text.dll</HintPath> | ||
</Reference> | ||
<Reference Include="Terradue.GeoJson"> | ||
<HintPath>..\packages\Terradue.GeoJson.1.4.0\lib\net40\Terradue.GeoJson.dll</HintPath> | ||
</Reference> | ||
<Reference Include="Terradue.OpenSearch.RdfEO"> | ||
<HintPath>..\packages\Terradue.OpenSearch.RdfEO.1.0.2\lib\net40\Terradue.OpenSearch.RdfEO.dll</HintPath> | ||
</Reference> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<Compile Include="Test.cs" /> | ||
<Compile Include="GenericTest.cs" /> | ||
</ItemGroup> | ||
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" /> | ||
<ItemGroup> | ||
<None Include="packages.config" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<ProjectReference Include="..\Terradue.OpenSearch\Terradue.OpenSearch.csproj"> | ||
<Project>{997A44FD-EE4A-490A-855B-88305E0CD269}</Project> | ||
<Name>Terradue.OpenSearch</Name> | ||
</ProjectReference> | ||
</ItemGroup> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
using NUnit.Framework; | ||
using System; | ||
|
||
namespace Terradue.OpenSearch.Test { | ||
[TestFixture()] | ||
public class Test { | ||
[Test()] | ||
public void TestCase() { | ||
} | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<packages> | ||
<package id="Mono.Addins" version="1.1" targetFramework="net45" /> | ||
<package id="NUnit" version="2.6.3" targetFramework="net45" /> | ||
<package id="ServiceStack.Text" version="3.9.71" targetFramework="net45" /> | ||
<package id="Terradue.GeoJson" version="1.4.0" targetFramework="net45" /> | ||
<package id="Terradue.OpenSearch" version="1.7.0" targetFramework="net45" /> | ||
<package id="Terradue.OpenSearch.RdfEO" version="1.0.2" targetFramework="net45" /> | ||
<package id="Terradue.ServiceModel.Syndication" version="1.0.0.0" targetFramework="net45" /> | ||
</packages> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters