A database based on .net
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
960 B

using System.Net;
using GBase.Api.Communication;
using GBase.Client;
using GBase.Client.Factories;
using GBase.Client.Interfaces;
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 to with CI
IGBaseClientSettings settings =
new GBaseClientSettings(ServerProtocol.Http, IPAddress.Parse("127.0.0.1"), 8080, "/GBase", "/GBaseTable", "/GBaseEntry");
IGBaseClient client = new GBaseClient(settings, new Mock<IGBaseServiceFactory>().Object, new Mock<IGBaseTableServiceFactory>().Object, new Mock<IGBaseEntryServiceFactory>().Object);
bool ret = client.GBase.AddTable();
Assert.True(ret);
}
}
}