mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-01-14 09:59:48 -05:00
* Make nullable warnings a per file opt-in * Remove unneeded compiler directives * Remove compiler directive for User Data
28 lines
922 B
C#
28 lines
922 B
C#
//
|
|
// Copyright (c) Microsoft. All rights reserved.
|
|
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
//
|
|
|
|
#nullable disable
|
|
|
|
using Microsoft.Kusto.ServiceLayer.Connection;
|
|
using Microsoft.Kusto.ServiceLayer.Connection.Contracts;
|
|
using Microsoft.Kusto.ServiceLayer.DataSource;
|
|
using Moq;
|
|
using NUnit.Framework;
|
|
|
|
namespace Microsoft.Kusto.ServiceLayer.UnitTests.Connection
|
|
{
|
|
public class DataSourceConnectionFactoryTests
|
|
{
|
|
[Test]
|
|
public void CreateDataSourceConnection_Returns_Connection()
|
|
{
|
|
var dataSourceFactoryMock = new Mock<IDataSourceFactory>();
|
|
var connectionFactory = new DataSourceConnectionFactory(dataSourceFactoryMock.Object);
|
|
var connection = connectionFactory.CreateDataSourceConnection(new ConnectionDetails(), "");
|
|
|
|
Assert.IsNotNull(connection);
|
|
}
|
|
}
|
|
} |