From b7152a502cd83d4ea33cdcfa7e12b60ef8851d73 Mon Sep 17 00:00:00 2001 From: Simon Gockner Date: Tue, 11 Feb 2020 11:35:23 +0100 Subject: [PATCH] - add a small integration test: Test connects to a local server and just calls a method --- Test.GBase.Client/IntegrationTest.cs | 11 ++++++++++- Test.GBase.Client/Test.GBase.Client.csproj | 6 +++++- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/Test.GBase.Client/IntegrationTest.cs b/Test.GBase.Client/IntegrationTest.cs index 6868eac..da19837 100644 --- a/Test.GBase.Client/IntegrationTest.cs +++ b/Test.GBase.Client/IntegrationTest.cs @@ -1,3 +1,7 @@ +using System.Net; +using GBase.Api.Communication; +using GBase.Client; +using GBase.Client.Interfaces; using NUnit.Framework; namespace Test.GBase.Client @@ -13,7 +17,12 @@ namespace Test.GBase.Client [Test] public void CheckBasicConnectionWithServer() { - Assert.Pass(); + IGBaseClientSettings settings = + new GBaseClientSettings(ServerProtocol.Http, IPAddress.Parse("127.0.0.1"), 8080, "/GBase", "/GBaseTable", "/GBaseEntry"); + IGBaseClient client = new GBaseClient(settings); + + bool ret = client.GBase.AddTable(); + Assert.True(ret); } } } \ No newline at end of file diff --git a/Test.GBase.Client/Test.GBase.Client.csproj b/Test.GBase.Client/Test.GBase.Client.csproj index e532582..a24e93f 100644 --- a/Test.GBase.Client/Test.GBase.Client.csproj +++ b/Test.GBase.Client/Test.GBase.Client.csproj @@ -9,7 +9,11 @@ - + + + + +