You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
968 B
32 lines
968 B
using System.Net;
|
|
using GBase.Api.Communication;
|
|
using GBase.Client;
|
|
using GBase.Client.Interfaces;
|
|
using GBase.Client.Services.Factories;
|
|
using Moq;
|
|
using NUnit.Framework;
|
|
|
|
namespace Test.GBase.Client
|
|
{
|
|
[TestFixture]
|
|
public class Tests
|
|
{
|
|
[SetUp]
|
|
public void Setup()
|
|
{
|
|
}
|
|
|
|
[Test]
|
|
public void CheckBasicConnectionWithServer()
|
|
{
|
|
Assert.Pass(); //Remove this assert if you want to run the test, not possible with CI
|
|
|
|
IGBaseClientSettings settings =
|
|
new GBaseClientSettings(ServerProtocol.Http, IPAddress.Parse("127.0.0.1"), 8080, "/GBase", "/GBaseTable", "/GBaseColumn");
|
|
IGBaseClient client = new GBaseClient(settings, new Mock<IGBaseServiceFactory>().Object, new Mock<IGBaseTableServiceFactory>().Object, new Mock<IGBaseColumnServiceFactory>().Object);
|
|
|
|
bool ret = client.GBase.AddTable();
|
|
Assert.True(ret);
|
|
}
|
|
}
|
|
} |