|
|
|
@ -1,3 +1,7 @@ |
|
|
|
|
|
|
|
using System.Net; |
|
|
|
|
|
|
|
using GBase.Api.Communication; |
|
|
|
|
|
|
|
using GBase.Client; |
|
|
|
|
|
|
|
using GBase.Client.Interfaces; |
|
|
|
using NUnit.Framework; |
|
|
|
using NUnit.Framework; |
|
|
|
|
|
|
|
|
|
|
|
namespace Test.GBase.Client |
|
|
|
namespace Test.GBase.Client |
|
|
|
@ -13,7 +17,12 @@ namespace Test.GBase.Client |
|
|
|
[Test] |
|
|
|
[Test] |
|
|
|
public void CheckBasicConnectionWithServer() |
|
|
|
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); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |